답안 #896036

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
896036 2023-12-31T13:34:24 Z wilsp Lightning Rod (NOI18_lightningrod) C++17
7 / 100
2000 ms 68040 KB
#include <iostream>
#include <vector>
using namespace std;

//aouxwoux's attempt at mock ZCO#1 Q1 (NOI 2018 P3)
 
int main() {
  
    int n;

    cin >> n;
    vector<pair<int,int>> coords;

    bool checker = true;
    for(int i = 0 ; i < n ; i++) {
        int x, y;
        cin >> x >> y;
        if(y != 1)
        {
        	checker = false;
        }
        coords.push_back({x,y});
 
    }
    if(checker == true)
    {
    	cout << n << "\n";
    }
    else if(n == 2) {

        if(abs(coords[1].second-coords[0].second)>=abs(coords[1].first-coords[0].first)) 
           {
           	   cout << 1 << '\n';
           }
        else 
           {
           	   cout << 2 << '\n';
           } 
    }
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 2054 ms 67744 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 432 KB Output is correct
6 Correct 0 ms 344 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 432 KB Output is correct
6 Correct 0 ms 344 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Incorrect 0 ms 348 KB Output isn't correct
9 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 432 KB Output is correct
6 Correct 0 ms 344 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Incorrect 0 ms 348 KB Output isn't correct
9 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 432 KB Output is correct
6 Correct 0 ms 344 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Incorrect 0 ms 348 KB Output isn't correct
9 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 2041 ms 68040 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 2054 ms 67744 KB Time limit exceeded
2 Halted 0 ms 0 KB -