Submission #22400506
Source Code Expand
Copy
// UTF−8#include<bits/stdc++.h>using namespace std;using ll = long long int;using lc = complex<double>;/* #include<atcoder/all> *//* using namespace atcoder; */template<class T>bool chmax(T &a, const T &b) { return (a<b ? (a=b,1) : 0); }template<class T>bool chmin(T &a, const T &b) { return (a>b ? (a=b,1) : 0); }int main(void) {constexpr ll MOD = 1 ? 1e9+7 : 998244353;const double PI = acos(-1);constexpr double eps = 1e-10;cout << fixed << setprecision(32);cin.tie(0); ios::sync_with_stdio(false);
// UTF−8 #include<bits/stdc++.h> using namespace std; using ll = long long int; using lc = complex<double>; /* #include<atcoder/all> */ /* using namespace atcoder; */ template<class T>bool chmax(T &a, const T &b) { return (a<b ? (a=b,1) : 0); } template<class T>bool chmin(T &a, const T &b) { return (a>b ? (a=b,1) : 0); } int main(void) { constexpr ll MOD = 1 ? 1e9+7 : 998244353; const double PI = acos(-1); constexpr double eps = 1e-10; cout << fixed << setprecision(32); cin.tie(0); ios::sync_with_stdio(false); if(1) { ll n; cin >> n; vector<ll> a(n); for(auto &e: a) cin >> e; map<ll,ll> m; ll res = 0; for(auto &e: a) res += m[e%200]++; cout << res << endl; } return 0; }
Submission Info
Submission Time | |
---|---|
Task | C - Ringo's Favorite Numbers 2 |
User | cookies |
Language | C++ (GCC 9.2.1) |
Score | 300 |
Code Size | 845 Byte |
Status | AC |
Exec Time | 48 ms |
Memory | 4752 KB |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:16:18: warning: unused variable ‘MOD’ [-Wunused-variable] 16 | constexpr ll MOD = 1 ? 1e9+7 : 998244353; | ^~~ ./Main.cpp:17:18: warning: unused variable ‘PI’ [-Wunused-variable] 17 | const double PI = acos(-1); | ^~ ./Main.cpp:18:22: warning: unused variable ‘eps’ [-Wunused-variable] 18 | constexpr double eps = 1e-10; | ^~~
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 300 / 300 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_01.txt, sample_02.txt, sample_03.txt |
All | extest_01.txt, extest_02.txt, extest_03.txt, extest_04.txt, extest_05.txt, sample_01.txt, sample_02.txt, sample_03.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt, test_13.txt, test_14.txt, test_15.txt, test_16.txt, test_17.txt, test_18.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
extest_01.txt | AC | 48 ms | 4632 KB |
extest_02.txt | AC | 26 ms | 4612 KB |
extest_03.txt | AC | 27 ms | 4632 KB |
extest_04.txt | AC | 33 ms | 4608 KB |
extest_05.txt | AC | 28 ms | 4684 KB |
sample_01.txt | AC | 2 ms | 3460 KB |
sample_02.txt | AC | 3 ms | 3520 KB |
sample_03.txt | AC | 2 ms | 3516 KB |
test_01.txt | AC | 2 ms | 3584 KB |
test_02.txt | AC | 2 ms | 3644 KB |
test_03.txt | AC | 2 ms | 3512 KB |
test_04.txt | AC | 2 ms | 3632 KB |
test_05.txt | AC | 2 ms | 3564 KB |
test_06.txt | AC | 2 ms | 3560 KB |
test_07.txt | AC | 2 ms | 3624 KB |
test_08.txt | AC | 4 ms | 3588 KB |
test_09.txt | AC | 31 ms | 4164 KB |
test_10.txt | AC | 6 ms | 3580 KB |
test_11.txt | AC | 15 ms | 3660 KB |
test_12.txt | AC | 34 ms | 4424 KB |
test_13.txt | AC | 31 ms | 4128 KB |
test_14.txt | AC | 3 ms | 3588 KB |
test_15.txt | AC | 37 ms | 4752 KB |
test_16.txt | AC | 37 ms | 4696 KB |
test_17.txt | AC | 25 ms | 4724 KB |
test_18.txt | AC | 31 ms | 4616 KB |