Submission #19523644


Source Code Expand

Copy
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0; i<(n); i++)
using namespace std;

int main() {
  
  vector<vector<int>> A(4, vector<int>(4));
  rep(i,4) {
    rep(j,4) {
      cin >> A[i][j];
    }
  }
  
  bool JDG = 0;
  
  rep(i,4) {
    rep(j,3) {
      if(A[i][j] == A[i][j+1]) {
        JDG = 1;
      }
    }
  }
  
  rep(i,3) {
    rep(j,4) {
      if(A[i][j] == A[i+1][j]) {
        JDG = 1;
      }
    }
  }
  
  if(JDG == 1) cout << "CONTINUE" << endl;
  else cout << "GAMEOVER" << endl;
}

Submission Info

Submission Time
Task A - DEAD END
User fromzero
Language C++ (GCC 9.2.1)
Score 100
Code Size 541 Byte
Status AC
Exec Time 7 ms
Memory 3616 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 35
Set Name Test Cases
All hand_1.txt, hand_2.txt, random_1.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt, random_15.txt, random_16.txt, random_17.txt, random_18.txt, random_19.txt, random_2.txt, random_20.txt, random_21.txt, random_22.txt, random_23.txt, random_24.txt, random_25.txt, random_26.txt, random_27.txt, random_28.txt, random_29.txt, random_3.txt, random_30.txt, random_4.txt, random_5.txt, random_6.txt, random_7.txt, random_8.txt, random_9.txt, sample_1.txt, sample_2.txt, sample_3.txt
Case Name Status Exec Time Memory
hand_1.txt AC 7 ms 3536 KB
hand_2.txt AC 2 ms 3536 KB
random_1.txt AC 2 ms 3588 KB
random_10.txt AC 2 ms 3584 KB
random_11.txt AC 3 ms 3548 KB
random_12.txt AC 2 ms 3456 KB
random_13.txt AC 2 ms 3536 KB
random_14.txt AC 2 ms 3604 KB
random_15.txt AC 2 ms 3604 KB
random_16.txt AC 2 ms 3612 KB
random_17.txt AC 2 ms 3404 KB
random_18.txt AC 2 ms 3400 KB
random_19.txt AC 2 ms 3448 KB
random_2.txt AC 2 ms 3448 KB
random_20.txt AC 2 ms 3456 KB
random_21.txt AC 3 ms 3616 KB
random_22.txt AC 3 ms 3580 KB
random_23.txt AC 3 ms 3540 KB
random_24.txt AC 2 ms 3460 KB
random_25.txt AC 2 ms 3540 KB
random_26.txt AC 2 ms 3376 KB
random_27.txt AC 2 ms 3536 KB
random_28.txt AC 3 ms 3580 KB
random_29.txt AC 2 ms 3604 KB
random_3.txt AC 2 ms 3404 KB
random_30.txt AC 2 ms 3576 KB
random_4.txt AC 2 ms 3376 KB
random_5.txt AC 2 ms 3456 KB
random_6.txt AC 3 ms 3376 KB
random_7.txt AC 2 ms 3452 KB
random_8.txt AC 3 ms 3584 KB
random_9.txt AC 2 ms 3564 KB
sample_1.txt AC 2 ms 3404 KB
sample_2.txt AC 7 ms 3560 KB
sample_3.txt AC 3 ms 3576 KB