結果

問題 No.293 4>7の世界
ユーザー HAHAHAHAHAHA
提出日時 2015-10-24 13:28:39
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 992 bytes
コンパイル時間 785 ms
コンパイル使用メモリ 73,104 KB
実行使用メモリ 4,376 KB
最終ジャッジ日時 2023-10-11 05:37:14
合計ジャッジ時間 1,754 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,368 KB
testcase_01 AC 2 ms
4,372 KB
testcase_02 AC 2 ms
4,372 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 1 ms
4,372 KB
testcase_06 AC 1 ms
4,368 KB
testcase_07 AC 2 ms
4,368 KB
testcase_08 AC 2 ms
4,368 KB
testcase_09 WA -
testcase_10 AC 2 ms
4,368 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 2 ms
4,368 KB
testcase_16 AC 1 ms
4,368 KB
testcase_17 WA -
testcase_18 AC 2 ms
4,372 KB
testcase_19 WA -
testcase_20 AC 1 ms
4,368 KB
testcase_21 AC 2 ms
4,368 KB
testcase_22 AC 2 ms
4,372 KB
testcase_23 AC 2 ms
4,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
#include<vector>
#include<queue>
#include<stack>
#include<set>
#include<map>
#include<utility>
#include<sstream>
#include<cctype>
#include<cmath>
#include<algorithm>
using namespace std;

#define ALL(x) (x).begin(),(x).end()
#define RALL(x) (x).rbegin(), (x).rend()
#define rev(i,n) for(int (i)=(n-1);(i)>=0;(i)--)
#define repp(i,n) for(int (i)=1;(i)<=(n);(i)++)
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define rev(i,n) for(int (i)=(n-1);(i)>=0;(i)--)
#define clr(a) memset((a), 0 ,sizeof(a))


typedef pair<int,int> P;
typedef vector<pair<int,int> > pii;
typedef map<string,int> mi;


int main(){
	string s,s2;
	cin >> s >> s2;
	if(s.size()>s2.size()) cout << s << endl;
	else if(s.size()<s2.size()) cout << s2 << endl;
	else{
		for(int i=0;i<s.size();i++){
			if(s[i]>s2[i]&&s[i]!='7'&&s2[i]!='4'){
				cout << s << endl;
				return 0;
			}
			else{
				cout << s2 << endl;
				return 0;
			}
		}
	}
	return 0;
}
0