답안 #743042

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
743042 2023-05-17T07:37:30 Z vjudge1 Lasers (NOI19_lasers) C++17
0 / 100
155 ms 924 KB
#include<iostream>

using namespace std;

int arr[10000010],ck;

int main()
{
    ios_base::sync_with_stdio(0),cin.tie(0);
    int n; cin>>n;
    for(int i = 1; i<=n; ++i){
        int x,y; cin>>x>>arr[i];
        if(arr[i-1]!=arr[i] && i>1){
            ck = 1;
        }
    }
    if(!ck){
        cout<<n;
        return 0;
    }
}

Compilation message

lasers.cpp: In function 'int main()':
lasers.cpp:12:15: warning: unused variable 'y' [-Wunused-variable]
   12 |         int x,y; cin>>x>>arr[i];
      |               ^
# 결과 실행 시간 메모리 Grader output
1 Runtime error 155 ms 464 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 155 ms 464 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 25 ms 924 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 25 ms 924 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 155 ms 464 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -