結果

問題 No.138 化石のバージョン
ユーザー _KingdomOfMoray
提出日時 2019-12-05 22:20:48
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 278 bytes
コンパイル時間 210 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-12-23 02:21:51
合計ジャッジ時間 2,838 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

list_0 = input().split('.')
list_1 = input().split('.')

flag = 1 # 後者が化石という前提

for i in range(3):
    if int(list_0[i]) < int(list_1[i]):
        flag = flag * 0
        
if list_0 == list_1:
    flag = 1
    
if flag:
    print('YES')
else:
    print('NO')
0