結果
| 問題 | No.264 じゃんけん |
| コンテスト | |
| ユーザー |
Justinlam33
|
| 提出日時 | 2017-04-10 18:57:17 |
| 言語 | C++11(廃止可能性あり) (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 206 bytes |
| 記録 | |
| コンパイル時間 | 116 ms |
| コンパイル使用メモリ | 22,528 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-18 05:43:15 |
| 合計ジャッジ時間 | 511 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 WA * 3 |
コンパイルメッセージ
main.cpp:3:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
3 | main(void){
| ^~~~
main.cpp: In function ‘int main()’:
main.cpp:5:6: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%i %i",&n,&k);
| ~~~~~^~~~~~~~~~~~~~~
ソースコード
#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"))));
}
Justinlam33