結果

問題 No.264 じゃんけん
ユーザー kotatsugamekotatsugame
提出日時 2016-11-20 14:56:39
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 123 bytes
コンパイル時間 443 ms
コンパイル使用メモリ 64,664 KB
実行使用メモリ 6,940 KB
最終ジャッジ日時 2024-05-05 10:45:40
合計ジャッジ時間 977 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 2 ms
5,376 KB
testcase_04 AC 2 ms
5,376 KB
testcase_05 WA -
testcase_06 AC 2 ms
5,376 KB
testcase_07 AC 1 ms
5,376 KB
testcase_08 AC 1 ms
5,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:2:21: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | using namespace std;main(){int a,b;cin>>a>>b;a=a<b?b-a:a-b;cout<<(a%3?a%3-1?"Won":"Lost":"Drew")<<endl;}
      |                     ^~~~

ソースコード

diff #

#include<iostream>
using namespace std;main(){int a,b;cin>>a>>b;a=a<b?b-a:a-b;cout<<(a%3?a%3-1?"Won":"Lost":"Drew")<<endl;}
0