結果
問題 |
No.201 yukicoderじゃんけん
|
ユーザー |
![]() |
提出日時 | 2018-07-04 13:15:07 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 388 bytes |
コンパイル時間 | 545 ms |
コンパイル使用メモリ | 67,644 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-01 02:09:45 |
合計ジャッジ時間 | 1,299 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include <iostream> #include <algorithm> using namespace std; using ll = long long; int main(){ string s[3],t[3]; cin >> s[0] >> s[1] >> s[2]; cin >> t[0] >> t[1] >> t[2]; int x=s[1].size()-t[1].size(); if(x>0)cout << s[0] << endl; else if(x<0)cout << t[0] << endl; else { if(s[1]>t[1])cout << s[0] << endl; else if(s[1]<t[1])cout << t[0] << endl; else cout << -1 << endl; } }