結果

問題 No.138 化石のバージョン
コンテスト
ユーザー alcoholamp
提出日時 2019-10-30 09:37:56
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 99 ms / 5,000 ms
コード長 351 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 332 ms
コンパイル使用メモリ 20,700 KB
実行使用メモリ 15,360 KB
最終ジャッジ日時 2026-04-04 15:16:54
合計ジャッジ時間 4,763 ms
ジャッジサーバーID
(参考情報)
judge4_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