結果
| 問題 | No.138 化石のバージョン |
| コンテスト | |
| ユーザー |
a_ten
|
| 提出日時 | 2016-03-15 21:21:16 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 321 bytes |
| 記録 | |
| コンパイル時間 | 195 ms |
| コンパイル使用メモリ | 77,392 KB |
| 最終ジャッジ日時 | 2025-12-03 19:50:18 |
|
ジャッジサーバーID (参考情報) |
judge1 / 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