結果
| 問題 | No.264 じゃんけん |
| コンテスト | |
| ユーザー |
Justinlam33
|
| 提出日時 | 2017-04-10 18:33:27 |
| 言語 | C++11(廃止可能性あり) (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 173 bytes |
| 記録 | |
| コンパイル時間 | 85 ms |
| コンパイル使用メモリ | 22,528 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-18 05:41:53 |
| 合計ジャッジ時間 | 517 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 4 |
コンパイルメッセージ
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?"Lost":"Win":n==1?k==0?"Lost":k==1?"Drew":"Win":k==0?"Win":k==1?"Lost":"Drew");
}
Justinlam33