結果

問題 No.138 化石のバージョン
ユーザー a_tena_ten
提出日時 2016-03-15 21:14:31
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 300 bytes
コンパイル時間 104 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,548 KB
最終ジャッジ日時 2024-04-08 14:09:27
合計ジャッジ時間 2,304 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,548 KB
testcase_01 AC 12 ms
6,548 KB
testcase_02 AC 12 ms
6,548 KB
testcase_03 AC 11 ms
6,548 KB
testcase_04 AC 12 ms
6,548 KB
testcase_05 AC 11 ms
6,548 KB
testcase_06 AC 11 ms
6,548 KB
testcase_07 AC 11 ms
6,548 KB
testcase_08 AC 11 ms
6,548 KB
testcase_09 AC 11 ms
6,548 KB
testcase_10 AC 11 ms
6,548 KB
testcase_11 AC 12 ms
6,548 KB
testcase_12 WA -
testcase_13 AC 12 ms
6,548 KB
testcase_14 WA -
testcase_15 AC 11 ms
6,548 KB
testcase_16 AC 11 ms
6,548 KB
testcase_17 AC 11 ms
6,548 KB
testcase_18 AC 11 ms
6,548 KB
testcase_19 AC 11 ms
6,548 KB
testcase_20 AC 11 ms
6,548 KB
testcase_21 AC 11 ms
6,548 KB
testcase_22 AC 12 ms
6,548 KB
testcase_23 AC 12 ms
6,548 KB
testcase_24 AC 11 ms
6,548 KB
testcase_25 AC 11 ms
6,548 KB
testcase_26 AC 11 ms
6,548 KB
testcase_27 AC 11 ms
6,548 KB
testcase_28 AC 11 ms
6,548 KB
testcase_29 WA -
testcase_30 AC 11 ms
6,548 KB
testcase_31 WA -
testcase_32 AC 11 ms
6,548 KB
testcase_33 WA -
testcase_34 AC 11 ms
6,548 KB
testcase_35 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#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'
0