結果
問題 |
No.201 yukicoderじゃんけん
|
ユーザー |
![]() |
提出日時 | 2015-05-08 22:44:26 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 362 bytes |
コンパイル時間 | 502 ms |
コンパイル使用メモリ | 62,344 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-05 19:03:50 |
合計ジャッジ時間 | 1,173 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 WA * 4 |
ソースコード
#include<cstdio> #include<iostream> #include<queue> #include<algorithm> #include<string> using namespace std; int main(){ string sa,sb,pa,pb; char xa, xb; //どうでもよい cin >> sa >> pa >> xa >> sb >> pb >> xb; if (pa.size() > pb.size()){ cout << sa << endl; } else if (pa == pb){ puts("-1"); } else{ cout << sb << endl; } return 0; }