Submission #595768

#TimeUsernameProblemLanguageResultExecution timeMemory
595768Cross_RatioIOI Fever (JOI21_fever)C++14
6 / 100
1 ms212 KiB
#include <bits/stdc++.h> #define int long long using namespace std; int X[100005]; int Y[100005]; signed main() { cin.sync_with_stdio(false); cin.tie(0); cout.tie(0); int N; cin >> N; int i, j; for(i=0;i<N;i++) cin >> X[i] >> Y[i]; int ans = 0; for(i=0;i<N;i++) { if(X[i]==Y[i]) ans++; } cout << ans; }

Compilation message (stderr)

fever.cpp: In function 'int main()':
fever.cpp:12:12: warning: unused variable 'j' [-Wunused-variable]
   12 |     int i, j;
      |            ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...