結果
問題 |
No.138 化石のバージョン
|
ユーザー |
![]() |
提出日時 | 2016-03-15 21:21:16 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 321 bytes |
コンパイル時間 | 110 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-10-01 07:02:31 |
合計ジャッジ時間 | 1,237 ms |
ジャッジサーバーID (参考情報) |
judge3 / 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'