Submission #158753


Source Code Expand

#include <stdio.h>
#include <iostream>
#include <algorithm>
#include <functional>
using namespace std;


int main(int argc, char* argv[])
{
	int panel[4][4];

	// input
	for(int i=0; i<4; i++) {
		for(int j=0; j<4; j++) {
			std::cin >> panel[i][j];
		}
	}

	for(int i=0; i<4; i++) {
		for(int j=0; j<3; j++) {
			if(panel[i][j] == panel[i][j+1]) {
				std::cout << "CONTINUE" << "\n";
				return 0;
			}
		}
	}

	for(int i=0; i<3; i++) {
		for(int j=0; j<4; j++) {
			if(panel[i][j] == panel[i+1][j]) {
				std::cout << "CONTINUE" << "\n";
				return 0;
			}
		}
	}

	std::cout << "GAMEOVER" << "\n";
	return 0;
}

Submission Info

Submission Time
Task A - DEAD END
User zendza
Language C++ (G++ 4.6.4)
Score 100
Code Size 652 Byte
Status AC
Exec Time 37 ms
Memory 1060 KiB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 32
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
Case Name Status Exec Time Memory
hand_1.txt AC 26 ms 1040 KiB
hand_2.txt AC 25 ms 1044 KiB
random_1.txt AC 24 ms 1036 KiB
random_10.txt AC 27 ms 1044 KiB
random_11.txt AC 27 ms 1016 KiB
random_12.txt AC 25 ms 1000 KiB
random_13.txt AC 26 ms 1000 KiB
random_14.txt AC 23 ms 1040 KiB
random_15.txt AC 25 ms 1040 KiB
random_16.txt AC 24 ms 1024 KiB
random_17.txt AC 24 ms 1020 KiB
random_18.txt AC 23 ms 1036 KiB
random_19.txt AC 26 ms 1040 KiB
random_2.txt AC 26 ms 1044 KiB
random_20.txt AC 25 ms 1004 KiB
random_21.txt AC 26 ms 1044 KiB
random_22.txt AC 25 ms 1000 KiB
random_23.txt AC 26 ms 1020 KiB
random_24.txt AC 33 ms 1040 KiB
random_25.txt AC 27 ms 992 KiB
random_26.txt AC 25 ms 1024 KiB
random_27.txt AC 26 ms 1008 KiB
random_28.txt AC 27 ms 1016 KiB
random_29.txt AC 28 ms 1060 KiB
random_3.txt AC 25 ms 1044 KiB
random_30.txt AC 26 ms 1024 KiB
random_4.txt AC 25 ms 1052 KiB
random_5.txt AC 26 ms 1048 KiB
random_6.txt AC 29 ms 1056 KiB
random_7.txt AC 26 ms 1008 KiB
random_8.txt AC 26 ms 1044 KiB
random_9.txt AC 37 ms 1044 KiB
sample_1.txt AC 26 ms 1028 KiB
sample_2.txt AC 27 ms 1040 KiB
sample_3.txt AC 26 ms 1040 KiB