結果
問題 | No.293 4>7の世界 |
ユーザー |
![]() |
提出日時 | 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 gcdfrom heapq import*import mathfrom collections import defaultdict, Counterimport syssys.setrecursionlimit(10 ** 7)MOD = 10 ** 9 + 7def 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()