結果

問題 No.264 じゃんけん
ユーザー Justinlam33Justinlam33
提出日時 2017-04-10 18:57:17
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 206 bytes
コンパイル時間 139 ms
コンパイル使用メモリ 24,520 KB
実行使用メモリ 4,500 KB
最終ジャッジ日時 2023-09-25 06:50:42
合計ジャッジ時間 788 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 WA -
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 2 ms
4,380 KB
testcase_08 AC 1 ms
4,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:3:10: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
 main(void){
          ^

ソースコード

diff #

#include <stdio.h>

main(void){
int n,k;
scanf("%i %i",&n,&k);
printf(n==0?(k==0?"Drew\n":(k==1?"Win\n":"Lost\n")):(n==1?(k==0?"Lost\n":(k==1?"Drew\n":"Win\n")):(k==0?"Win\n":(k==1?"Lost\n":"Drew\n"))));
}
0