結果
問題 | No.293 4>7の世界 |
ユーザー |
|
提出日時 | 2017-09-08 23:58:02 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 34 ms / 2,000 ms |
コード長 | 526 bytes |
コンパイル時間 | 357 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-30 12:30:47 |
合計ジャッジ時間 | 2,230 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 |
ソースコード
# -*- coding: utf-8 -*-A,B = input().split()if len(A) > len(B):print(A)elif len(A) < len(B):print(B)else:for a,b in zip(A,B):a = int(a)b = int(b)if a==7 and b==4:print(B)breakelif a==4 and b==7:print(A)breakelse:if a > b:print(A)breakelif a < b:print(B)breakelse:continue