結果
| 問題 | No.201 yukicoderじゃんけん |
| コンテスト | |
| ユーザー |
albicilla
|
| 提出日時 | 2015-05-08 22:44:26 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 362 bytes |
| 記録 | |
| コンパイル時間 | 800 ms |
| コンパイル使用メモリ | 86,756 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-27 04:29:45 |
| 合計ジャッジ時間 | 1,111 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
albicilla