Submission #1100213

#TimeUsernameProblemLanguageResultExecution timeMemory
1100213vjudge1Coin Collecting (JOI19_ho_t4)C++17
0 / 100
1 ms336 KiB
#include <bits/stdc++.h> using namespace std; const int N = 1e5 + 5; int main() { int n, k = 0; cin >> n; vector<int> a(3); for(int i = 0; i < n * 2; i++) { int x, y; cin >> x >> y; x = max(1, min(n, x)); y = max(1, min(2, y)); a[y]++; } int x1 = a[1] - n; int x2 = a[2] - n; k += abs(x1) + abs(x2); cout << k; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...