Submission #743237

#TimeUsernameProblemLanguageResultExecution timeMemory
743237vjudge1Lightning Rod (NOI18_lightningrod)C++17
0 / 100
2053 ms4356 KiB
#include <iostream> using namespace std; int main () { int n, rod = 0, prev, temp, now; cin >> n; for(int i = 0;i < n;++i) { cin >> temp >> now; if(i != 0) { if(now > prev) { rod++; } else if(now == prev) { rod++; } } prev = now; } cout << rod; }
#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...