結果
問題 |
No.293 4>7の世界
|
ユーザー |
|
提出日時 | 2018-11-03 14:41:16 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 394 bytes |
コンパイル時間 | 211 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-20 18:54:50 |
合計ジャッジ時間 | 1,913 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 2 |
other | AC * 13 WA * 7 |
ソースコード
from sys import stdin def 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) print(max(a, b)) input = lambda: stdin.readline().rstrip() main()