結果
問題 | No.293 4>7の世界 |
ユーザー |
![]() |
提出日時 | 2015-11-05 11:59:04 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 35 ms / 2,000 ms |
コード長 | 366 bytes |
コンパイル時間 | 594 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-30 11:31:03 |
合計ジャッジ時間 | 2,641 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 |
ソースコード
a, b = map(str,input().split()) if len(a)>len(b): print(a) exit() if len(b)>len(a): print(b) exit() l = len(a) for i in range(l): if a[i] == b[i]: continue if a[i] == '4' and b[i] == '7': print(a) exit() if a[i] == '7' and b[i] == '4': print(b) exit() if int(a[i]) > int(b[i]): print(a) exit() if int(b[i]) > int(a[i]): print(b) exit()