結果

問題 No.264 じゃんけん
ユーザー kazuki232kazuki232
提出日時 2017-02-03 23:50:29
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 296 bytes
コンパイル時間 134 ms
コンパイル使用メモリ 23,532 KB
実行使用メモリ 4,568 KB
最終ジャッジ日時 2023-08-25 19:58:18
合計ジャッジ時間 808 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 0 ms
4,376 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
int main(){
int i[3];

for(i[2] = 0; i[2] < 1; i[2]++) {
scanf("%d",&i[i[2]]);
}

switch ((3+i[0]-i[1])%3) {
	case 0:
		printf("Drew\n");
		break;
	case 1:
		printf("Won\n");
		break;
	case 2:
		printf("Lose\n");
		break;
	default:
		printf("others\n");
		break;
}
	return 0;
}
0