結果
問題 | No.293 4>7の世界 |
ユーザー |
![]() |
提出日時 | 2015-10-23 22:34:35 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 14 ms / 2,000 ms |
コード長 | 354 bytes |
コンパイル時間 | 1,113 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2024-12-30 11:05:39 |
合計ジャッジ時間 | 1,718 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 |
ソースコード
s, t = raw_input().split()def compare(a, b):for i in xrange(len(a)):if a[i] == "4" and b[i] == "7":return aelif a[i] == "7" and b[i] == "4":return belif a[i] > b[i]:return aelif a[i] < b[i]:return breturn aif len(s) > len(t):print selif len(s) < len(t):print telse:print compare(s, t)