結果
| 問題 |
No.264 じゃんけん
|
| コンテスト | |
| ユーザー |
Justinlam33
|
| 提出日時 | 2017-04-10 18:44:19 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 188 bytes |
| コンパイル時間 | 92 ms |
| コンパイル使用メモリ | 22,528 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-18 05:42:13 |
| 合計ジャッジ時間 | 529 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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":(k==1?"Win":"Lost")):(n==1?(k==0?"Lost":(k==1?"Drew":"Win")):(k==0?"Win":(k==1?"Lost":"Drew"))));
}
Justinlam33