結果
| 問題 | No.293 4>7の世界 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-10-23 22:38:11 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 187 ms / 2,000 ms |
| コード長 | 631 bytes |
| 記録 | |
| コンパイル時間 | 139 ms |
| コンパイル使用メモリ | 77,552 KB |
| 最終ジャッジ日時 | 2025-12-03 17:42:29 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 20 |
ソースコード
# -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll
A, B = raw_input().split()
if len(A) > len(B):
print A
elif len(A) < len(B):
print B
else:
for i, j in zip(A, B):
if i not in ["4", "7"] or j not in ["4", "7"]:
if int(i) > int(j):
print A
break
elif int(i) < int(j):
print B
break
else:
if i == "4" and j == "7":
print A
break
elif i == "7" and j == "4":
print B
break