結果
問題 | No.293 4>7の世界 |
ユーザー |
![]() |
提出日時 | 2022-10-16 02:40:55 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 2,000 ms |
コード長 | 401 bytes |
コンパイル時間 | 92 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-06-27 01:17:18 |
合計ジャッジ時間 | 1,617 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 |
ソースコード
A,B=input().split()if len(A)>len(B):print(A)elif len(B)>len(A):print(B)else:for i in range(len(A)):x=A[i]y=B[i]if x=="4" and y=="7":print(A)breakif x=="7" and y=="4":print(B)breakif x>y:print(A)breakelif y>x:print(B)break