結果
| 問題 |
No.293 4>7の世界
|
| コンテスト | |
| ユーザー |
Tawara
|
| 提出日時 | 2015-10-23 23:57:31 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 15 ms / 2,000 ms |
| コード長 | 341 bytes |
| コンパイル時間 | 356 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2024-12-30 11:17:58 |
| 合計ジャッジ時間 | 1,494 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 20 |
ソースコード
s = set(['4','7']) def less(x,y): if x == y: return False if x in s and y in s: return x == '7' else: return x < y A,B = raw_input().split() a = len(A) b = len(B) if a > b: print A elif a < b: print B else: for i in xrange(a): if less(A[i],B[i]): print B break elif less(B[i],A[i]): print A break else: print A
Tawara