結果
問題 | No.293 4>7の世界 |
ユーザー |
![]() |
提出日時 | 2017-03-30 17:39:53 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 38 ms / 2,000 ms |
コード長 | 326 bytes |
コンパイル時間 | 245 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-12-30 12:25:11 |
合計ジャッジ時間 | 2,259 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 |
ソースコード
import sysimport math as masa,b=input().split()if len(a)>len(b):print(a)elif len(a)<len(b):print(b)else:for i in range(len(a)):if a[i]!=b[i]:if max(a[i],b[i])=="7" and min(a[i],b[i])=="4":print(min(a,b))else:print(max(a,b))break#for i in sys.stdin:# a,b=map(int,i.split())# print(gcd(a,b),lcm(a,b))