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