結果
問題 | No.201 yukicoderじゃんけん |
ユーザー | satanic |
提出日時 | 2015-12-06 15:55:59 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 407 bytes |
コンパイル時間 | 428 ms |
コンパイル使用メモリ | 55,388 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-14 15:21:52 |
合計ジャッジ時間 | 1,288 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include <iostream>#include <string>using namespace std;#define OUT(s) {cout << s << "\n"; return 0;}int main(){cin.tie(0);ios::sync_with_stdio(false);string sa, sb, pa, pb;char tmp;cin >> sa >> pa >> tmp;cin >> sb >> pb >> tmp;if(pa.length()>pb.length()) OUT(sa);if(pa.length()<pb.length()) OUT(sb);if(pa.compare(pb)>0) OUT(sa);if(pb.compare(pa)>0) OUT(sb);OUT(-1);}