結果

問題 No.201 yukicoderじゃんけん
ユーザー t98slider
提出日時 2021-06-12 03:31:01
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 274 bytes
コンパイル時間 1,395 ms
コンパイル使用メモリ 167,000 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-15 08:00:21
合計ジャッジ時間 2,220 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

int main(){
    string s1,s2,s3;
    string t1,t2,t3;
    cin>>s1>>s2>>s3>>t1>>t2>>t3;
    if(s2==t2)cout<<-1<<endl;
    else if(s2.size()==t2.size())cout<<(s2>t2?s1:t1)<<endl;
    else cout<<(s2.size()>t2.size()?s1:t1)<<endl;
}
0