結果

問題 No.138 化石のバージョン
コンテスト
ユーザー bellangeldindon
提出日時 2019-05-07 17:12:29
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 78 ms / 5,000 ms
コード長 217 bytes
記録
コンパイル時間 121 ms
コンパイル使用メモリ 77,184 KB
最終ジャッジ日時 2025-12-04 01:38:43
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

A = map(int, raw_input().split('.'))
B = map(int, raw_input().split('.'))
fossil = True
for i in range(0, 3):
	if A[i] < B[i]:
		fossil = False
		break
	if A[i] > B[i]:
		break

if fossil: print 'YES'
else: print 'NO'
0