結果
問題 | No.293 4>7の世界 |
ユーザー |
|
提出日時 | 2015-11-09 20:10:35 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 12 ms / 2,000 ms |
コード長 | 546 bytes |
コンパイル時間 | 433 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2024-12-30 11:33:13 |
合計ジャッジ時間 | 1,517 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 |
ソースコード
import sysa,b=sys.stdin.readline().split(" ")a = a.strip()b = b.strip()if len(a) > len(b):print aelif len(b) > len(a):print belse:for i in range(0, len(a)):if a[i] == "4" and b[i] == "7":print asys.exit(0)elif b[i] == "4" and a[i] == "7":print bsys.exit(0)else:if ord(b[i]) > ord(a[i]):print bsys.exit(0)elif ord(a[i]) > ord(b[i]):print asys.exit(0)