結果

問題 No.138 化石のバージョン
ユーザー alcoholamp
提出日時 2019-10-30 09:37:56
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 5,000 ms
コード長 351 bytes
コンパイル時間 253 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-14 21:44:58
合計ジャッジ時間 2,228 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

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