結果

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

テストケース

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

ソースコード

diff #

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

for(i[2] = 0; i[2] < 2; 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