結果
| 問題 | No.293 4>7の世界 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-10-23 22:38:11 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 117 ms / 2,000 ms |
| + 478µs | |
| コード長 | 631 bytes |
| 記録 | |
| コンパイル時間 | 66 ms |
| コンパイル使用メモリ | 81,280 KB |
| 実行使用メモリ | 95,232 KB |
| 最終ジャッジ日時 | 2026-07-17 23:15:14 |
| 合計ジャッジ時間 | 4,351 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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