結果
| 問題 |
No.293 4>7の世界
|
| コンテスト | |
| ユーザー |
nohakai3
|
| 提出日時 | 2022-10-31 14:43:17 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 361 bytes |
| コンパイル時間 | 126 ms |
| コンパイル使用メモリ | 82,436 KB |
| 実行使用メモリ | 53,756 KB |
| 最終ジャッジ日時 | 2024-07-08 03:51:59 |
| 合計ジャッジ時間 | 1,724 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 15 WA * 5 |
ソースコード
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)
if y>x:
print(b)
nohakai3