結果
問題 |
No.293 4>7の世界
|
ユーザー |
![]() |
提出日時 | 2015-10-26 02:40:07 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 36 ms / 2,000 ms |
コード長 | 339 bytes |
コンパイル時間 | 189 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-30 11:23:22 |
合計ジャッジ時間 | 2,017 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 |
ソースコード
A, B = map(int, input().split()) t = 10 while t < A or t < B: t *= 10 while t > 0: a = A % (t * 10) // t b = B % (t * 10) // t if a==b: t//=10 continue elif a==4 and b == 7: print(A) elif a==7 and b == 4: print(B) elif a>b: print(A) else: print(B) exit()