結果

問題 No.201 yukicoderじゃんけん
ユーザー mine691
提出日時 2018-07-04 13:13:02
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 377 bytes
コンパイル時間 603 ms
コンパイル使用メモリ 67,712 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-01 02:09:44
合計ジャッジ時間 1,314 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
	if(s[1]>t[1])cout << s[0] << endl;
	else if(s[1]<t[1])cout << t[0] << endl;
	else cout << -1 << endl;
}
0