結果

問題 No.264 じゃんけん
ユーザー a2011404a2011404
提出日時 2017-02-28 09:22:43
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 333 bytes
コンパイル時間 518 ms
コンパイル使用メモリ 23,188 KB
実行使用メモリ 5,272 KB
最終ジャッジ日時 2023-09-02 16:13:29
合計ジャッジ時間 1,344 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <stdio.h>

int main(int argc, char *argv[]){
    int A, B ,judge;
    printf("グー=0,チョキ=1,パー=2を入力してください\n");
    scanf("%d%d", &A, &B);

	judge = B-A;	

	if(judge == 0){
		printf("Drew\n");
	}else if(judge == 1 || judge == -2){
		printf("Won\n");
	}else 
		printf("Lost\n");



    return 0;
}
0