結果
問題 | No.201 yukicoderじゃんけん |
ユーザー |
![]() |
提出日時 | 2020-12-23 22:27:12 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 517 bytes |
コンパイル時間 | 1,921 ms |
コンパイル使用メモリ | 192,472 KB |
最終ジャッジ日時 | 2025-01-17 06:30:09 |
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ string A1,A2,B1,B2,C1,C2; cin>>A1>>B1>>C1; cin>>A2>>B2>>C2; if(B1.length()>B2.length()){ cout<<A1<<endl; return 0; } if(B1.length()<B2.length()){ cout<<A2<<endl; return 0; } for(int i=0;i<B1.length();i++){ if(B1.at(i)>B2.at(i)){ cout<<A1<<endl; return 0; } else if(B1.at(i)<B2.at(i)){ cout<<A2<<endl; return 0; } else{ continue; } } cout<<-1<<endl; return 0; }