結果
| 問題 |
No.293 4>7の世界
|
| コンテスト | |
| ユーザー |
nohakai3
|
| 提出日時 | 2022-10-31 14:43:46 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 36 ms / 2,000 ms |
| コード長 | 399 bytes |
| コンパイル時間 | 252 ms |
| コンパイル使用メモリ | 82,180 KB |
| 実行使用メモリ | 52,096 KB |
| 最終ジャッジ日時 | 2024-07-08 03:52:36 |
| 合計ジャッジ時間 | 1,647 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 20 |
ソースコード
a,b=input().split()
if len(a)>len(b):
print(a)
elif len(b)>len(a):
print(b)
else:
for i in range(len(a)):
x=a[i]
y=b[i]
if x=="4" and y=="7":
print(a)
exit()
if x=="7" and y=="4":
print(b)
exit()
if x>y:
print(a)
exit()
if y>x:
print(b)
exit()
nohakai3