結果

問題 No.264 じゃんけん
ユーザー ゆーたろゆーたろ
提出日時 2016-11-19 12:10:44
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 473 bytes
コンパイル時間 119 ms
コンパイル使用メモリ 20,096 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-05-05 04:08:40
合計ジャッジ時間 691 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 0 ms
5,376 KB
testcase_07 AC 1 ms
5,376 KB
testcase_08 AC 1 ms
5,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |         scanf("%d %d", &n, &m);
      |         ^~~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>

int main(void) {
	int n,m;
	
	scanf("%d %d", &n, &m);
	
	switch(n){
		case 0:switch(m){
				case 0:printf("Drew");break;
				case 1:printf("Won");break;
				case 2:printf("Lost");break;
			}
		case 1:switch(m){
				case 0:printf("Lost");break;
				case 1:printf("Drew");break;
				case 2:printf("Won");break;
			}
		case 2:switch(m){
				case 0:printf("Won");break;
				case 1:printf("Lost");break;
				case 2:printf("Drew");break;
			}
	}
	return 0;
}
0