結果
問題 | No.293 4>7の世界 |
ユーザー |
|
提出日時 | 2018-11-03 14:44:55 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 35 ms / 2,000 ms |
コード長 | 432 bytes |
コンパイル時間 | 511 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-12-30 12:43:39 |
合計ジャッジ時間 | 1,853 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 |
ソースコード
from sys import stdindef main():A, B = input().split()if len(A) == len(B):a, b = '', ''for s in zip(A, B):if '4' in s and '7' in s:s = [s[1], s[0]]a += s[0]b += s[1]a, b = int(a), int(b)else:a, b = int(A), int(B)if a > b:print(A)else:print(B)input = lambda: stdin.readline().rstrip()main()