結果

問題 No.138 化石のバージョン
コンテスト
ユーザー alcoholamp
提出日時 2019-10-30 09:37:56
言語 Python3
(3.14.7 + numpy 2.5.2 + scipy 1.18.0)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 96 ms / 5,000 ms
+ 926µs
コード長 351 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 297 ms
コンパイル使用メモリ 21,412 KB
実行使用メモリ 15,868 KB
最終ジャッジ日時 2026-08-27 11:41:42
合計ジャッジ時間 5,573 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

class Problem0138:
	def solve(this):
		a1,b1,c1 = map(int, input().split("."))
		a2,b2,c2 = map(int, input().split("."))
		
		if a1 < a2:
			print("NO")
		elif a1 == a2 and b1 < b2:
			print("NO")
		elif a1 == b1 and a2 == b2 and c1 < c2:
			print("NO")
		else:
			print("YES")
			
if __name__ == "__main__":
	problem = Problem0138()
	problem.solve()
0