Skip to content

Commit 35ababf

Browse files
authored
Thứ 4 - 17/05/2017 Bài 1
1 parent b9059ff commit 35ababf

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
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+
int x, n = 10;
6+
set<int> s;
7+
8+
while (n--) {
9+
cin >> x;
10+
s.insert(x % 42);
11+
}
12+
13+
cout << s.size();
14+
return 0;
15+
}

0 commit comments

Comments
 (0)