Submission #743237

# Submission time Handle Problem Language Result Execution time Memory
743237 2023-05-17T09:06:16 Z vjudge1 Lightning Rod (NOI18_lightningrod) C++17
0 / 100
2000 ms 4356 KB
#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 time Memory Grader output
1 Execution timed out 2035 ms 2128 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 300 KB Output is correct
2 Incorrect 1 ms 300 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 300 KB Output is correct
2 Incorrect 1 ms 300 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 300 KB Output is correct
2 Incorrect 1 ms 300 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 300 KB Output is correct
2 Incorrect 1 ms 300 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 2053 ms 4356 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 2035 ms 2128 KB Time limit exceeded
2 Halted 0 ms 0 KB -