結果
| 問題 | No.293 4>7の世界 |
| コンテスト | |
| ユーザー |
yaoshimax
|
| 提出日時 | 2016-05-14 19:11:31 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 81 ms / 2,000 ms |
| コード長 | 353 bytes |
| 記録 | |
| コンパイル時間 | 119 ms |
| コンパイル使用メモリ | 77,612 KB |
| 最終ジャッジ日時 | 2025-12-03 20:45:43 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 20 |
ソースコード
N,M=map(int,raw_input().split())
n,m=N,M
nflag=True
while n!=0 and m!=0:
a,b=n%10,m%10
if (a,b) == (4,7):
nflag=True
elif (a,b) == (7,4):
nflag=False
elif a>b:
nflag=True
elif b>a:
nflag=False
n/=10
m/=10
if n!=0:
print N
elif m!=0:
print M
elif nflag:
print N
else:
print M
yaoshimax