Skip to content

Commit 44d0f7e

Browse files
committed
148.Insomnia_cure added
1 parent ee29499 commit 44d0f7e

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

Diff for: 148A.Insomnia_cure.cpp

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#include <bits/stdc++.h>
2+
using namespace std;
3+
4+
int main()
5+
{
6+
int k,l,m,n,d,count=0;
7+
cin>>k>>l>>m>>n>>d;
8+
for(int i=1; i<=d; i++){
9+
if(i%k == 0 || i%l == 0 || i%m == 0 || i%n == 0){
10+
count++;
11+
}
12+
}
13+
cout<<count;
14+
return 0;
15+
}

Diff for: 580A.Kefa_and_First_Steps.cpp

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#include <bits/stdc++.h>
2+
using namespace std;
3+
4+
int main()
5+
{
6+
int n;
7+
cin>>n;
8+
string a[n];
9+
for(int i=1; i<=n; i++){
10+
cin>>a[i];
11+
}
12+
cout<<a;
13+
return 0;
14+
}

0 commit comments

Comments
 (0)