結果
| 問題 | No.138 化石のバージョン |
| コンテスト | |
| ユーザー |
a_ten
|
| 提出日時 | 2016-03-15 21:14:31 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 300 bytes |
| 記録 | |
| コンパイル時間 | 142 ms |
| コンパイル使用メモリ | 76,624 KB |
| 最終ジャッジ日時 | 2025-12-03 19:50:13 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 WA * 6 |
ソースコード
#coding:utf-8
old=raw_input().split('.')
new=raw_input().split('.')
if new[0] < old[0]:
print 'YES'
if new[0] == old[0]:
if new[1] < old[1]:
print 'YES'
elif new[1] == old[1]:
if new[2] <= old[2]:
print 'YES'
else:
print 'NO'
else:
print 'NO'
if old[0] < new[0]:
print 'NO'
a_ten