結果
問題 | No.293 4>7の世界 |
ユーザー |
![]() |
提出日時 | 2016-06-03 02:09:07 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 37 ms / 2,000 ms |
コード長 | 483 bytes |
コンパイル時間 | 819 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-30 12:04:42 |
合計ジャッジ時間 | 1,735 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 |
ソースコード
A, B = input().split()def get_large(a, b):if len(a) != len(b):return (max(int(a), int(b)))else:for i in range(len(a)):if a[i] == b [i]:continueelif (a[i] == '4' and b[i] == '7') or (a[i] == '7' and b[i] == '4'):if a[i] == '4':return aelse:return belse:return (max(int(a), int(b)))print(get_large(A, B))