제출 #146086

#제출 시각아이디문제언어결과실행 시간메모리
146086youssan_williamKocka (COCI18_kocka)C++14
70 / 70
225 ms3524 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int n; cin >> n; int arr[4][n]; int a[n] , b[n]; bool tillNowOk=true; for(int i = 0 ; i <2 ;i++) { for(int j= 0 ; j < n ;j++) { cin >> a[j]; } for(int j= 0 ; j < n ;j++) { cin >> b[j]; if(a[j]==-1&&b[j]==-1) continue; if(a[j]==-1&&b[j]!=-1) { tillNowOk=false; } if(b[j]==-1&&a[j]!=-1) { tillNowOk=false; } if(a[i]+b[i]<n) { continue; } else { tillNowOk=false; } } } if(!tillNowOk) { cout << "NE\n"; return 0; } cout << "DA\n"; return 0; }

컴파일 시 표준 에러 (stderr) 메시지

kocka.cpp: In function 'int main()':
kocka.cpp:9:9: warning: unused variable 'arr' [-Wunused-variable]
     int arr[4][n];
         ^~~
#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...