結果
問題 | No.201 yukicoderじゃんけん |
ユーザー |
|
提出日時 | 2018-06-12 23:16:21 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 320 bytes |
コンパイル時間 | 501 ms |
コンパイル使用メモリ | 63,872 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-30 13:58:20 |
合計ジャッジ時間 | 1,194 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 17 WA * 3 |
ソースコード
#include <iostream> #include <string> using namespace std; int main(int argc, char* argv[]) { string name1,name2; string PA,PB; char XA,XB; cin>>name1>>PA>>XA; cin>>name2>>PB>>XB; int P=PA.compare(PB); if (P>0){ cout<<name1<<endl; }else if (P<0){ cout<<name2<<endl; }else{ cout<<-1<<endl; } return 0; }