結果
| 問題 |
No.293 4>7の世界
|
| コンテスト | |
| ユーザー |
mathshab
|
| 提出日時 | 2017-07-03 12:12:28 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 541 bytes |
| コンパイル時間 | 251 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-10-05 11:06:43 |
| 合計ジャッジ時間 | 1,397 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 4 |
| other | RE * 20 |
ソースコード
#world if 4>7
A,B=(list(i) for i in input().split())
if len(A)>len(B):
Ou=A.join("")
elif len(B)>len(A):
Ou=B.join("")
else:
Ou=[]
i=0
while i<len(A) and Ou==[]:
A[i]=int(A[i])
B[i]=int(B[i])
if A[i]>B[i]:
if A[i]!=4:
Ou=A
if B[i]!=7:
Ou=A
elif B[i]>A[i]:
if A[i]!=7:
Ou=B
if B[i]!=4:
Ou=B
i+=1
for i in range(len(Ou)):
Ou[i]=str(Ou[i])
Ou=Ou.join("")
print(Ou)
mathshab