結果
問題 | No.293 4>7の世界 |
ユーザー |
|
提出日時 | 2024-11-02 19:31:59 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 34 ms / 2,000 ms |
コード長 | 564 bytes |
コンパイル時間 | 336 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-02 19:32:01 |
合計ジャッジ時間 | 2,611 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 |
ソースコード
a, b = input().split()if len(a) > len(b):print(a)elif len(a) < len(b):print(b)else:for i in range(len(a)):if a[i] != b[i]:if a[i] == "4" and b[i] == "7":print(a)breakelif a[i] == "7" and b[i] == "4":print(b)breakelse:a = int(a)b = int(b)if a > b:print(a)breakelse:print(b)break