結果

問題 No.264 じゃんけん
ユーザー a2011404
提出日時 2017-02-28 09:23:58
言語 C90
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 244 bytes
コンパイル時間 843 ms
コンパイル使用メモリ 20,096 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-11 22:47:11
合計ジャッジ時間 656 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |     scanf("%d%d", &A, &B);
      |     ^~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>

int main(void)
{
    int A, B ,judge;
    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