結果
| 問題 | No.293 4>7の世界 | 
| コンテスト | |
| ユーザー |  alexara1123 | 
| 提出日時 | 2019-09-23 01:36:54 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                RE
                                 
                            (最新) 
                                AC
                                 
                            (最初) | 
| 実行時間 | - | 
| コード長 | 785 bytes | 
| コンパイル時間 | 202 ms | 
| コンパイル使用メモリ | 82,432 KB | 
| 実行使用メモリ | 89,088 KB | 
| 最終ジャッジ日時 | 2024-09-19 03:55:40 | 
| 合計ジャッジ時間 | 4,894 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | RE * 4 | 
| other | RE * 20 | 
ソースコード
from fractions import gcd
from heapq import*
import math
from collections import defaultdict, Counter
import sys
sys.setrecursionlimit(10 ** 7)
MOD = 10 ** 9 + 7
def main():
    a, b = map(int, input().split())
    sa,sb = str(a),str(b)
    if len(sa) > len(sb):
        print(a)
    elif len(sa) < len(sb):
        print(b)
    else:
        for i in range(len(sa)):
            if (sa[i] == "4" and sb[i] == "7"):
                print(a)
                exit()
            elif (sa[i] == "7" and sb[i] == "4"):
                print(b)
                exit()
            elif int(sa[i]) > int(sb[i]):
                print(a)
                exit()
            elif int(sa[i]) < int(sb[i]):
                print(b)
                exit()
if __name__ == '__main__':
    main()
            
            
            
        