結果
問題 | No.138 化石のバージョン |
ユーザー |
![]() |
提出日時 | 2019-05-07 17:12:29 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 14 ms / 5,000 ms |
コード長 | 217 bytes |
コンパイル時間 | 63 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-01 23:34:23 |
合計ジャッジ時間 | 1,737 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 |
ソースコード
A = map(int, raw_input().split('.'))B = map(int, raw_input().split('.'))fossil = Truefor i in range(0, 3):if A[i] < B[i]:fossil = Falsebreakif A[i] > B[i]:breakif fossil: print 'YES'else: print 'NO'