結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
a_ten
|
| 提出日時 | 2016-03-15 21:23:15 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 321 bytes |
| コンパイル時間 | 45 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-01 07:02:34 |
| 合計ジャッジ時間 | 1,192 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 14 WA * 19 |
ソースコード
#coding:utf-8
old=raw_input().split('.')
hantei=raw_input().split('.')
if hantei[0] < old[0]:
print 'NO'
if hantei[0] == old[0]:
if hantei[1] < old[1]:
print 'YES'
elif hantei[1] == old[1]:
if hantei[2] <= old[2]:
print 'YES'
else:
print 'NO'
else:
print 'NO'
if old[0] < hantei[0]:
print 'YES'
a_ten