結果
問題 | No.293 4>7の世界 |
ユーザー |
👑 |
提出日時 | 2020-06-25 06:02:26 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 29 ms / 2,000 ms |
コード長 | 532 bytes |
コンパイル時間 | 80 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-03 20:35:19 |
合計ジャッジ時間 | 1,605 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 |
ソースコード
a, b = input().split() if len(a) > len(b): print(int(a)) elif len(a) < len(b): print(int(b)) else: for _, (numa, numb) in enumerate(zip(a, b)): if numa == numb: continue if int(numa) > int(numb): if numa == "7" and numb == "4": print(int(b)) else: print(int(a)) exit() else: if numa == "4" and numb == "7": print(int(a)) else: print(int(b)) exit()