답안 #342651

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
342651 2021-01-02T15:06:38 Z Iwanttobreakfree Cluedo (IOI10_cluedo) C++
0 / 100
1000 ms 384 KB
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include "grader.h"
#include "cluedo.h"
using namespace std;
int M,L,W;
void Solve(){
   int r;
    r = Theory(1,2,3);
    M=1;
    L=1;
    W=1;
    while (r!=0){
   	if (r==1){
   		M++;
   	}
   	else if (r==2){
   		L++;
   	}
   	else if (r==3){
   		W++;
   	}
   }
    r = Theory(3,2,1); 
    M=1;
    L=1;
    W=1;
   	while (r!=0){
    if (r==1){
   		M++;
   	}
   	else if (r==2){
   		L++;
   	}
   	else if (r==3){
   		W++;
   	}
   }
    r = Theory(4,4,4);
    M=1;
    L=1;
    W=1;
    while (r!=0){
    if (r==1){
   		M++;
   	}
   	else if (r==2){
   		L++;
   	}
   	else if (r==3){
   		W++;
   	}
   }
   return;
}
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 3080 ms 384 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 3082 ms 364 KB Time limit exceeded
2 Halted 0 ms 0 KB -