結果

問題 No.138 化石のバージョン
ユーザー kohei2019
提出日時 2021-08-04 00:07:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 5,000 ms
コード長 326 bytes
コンパイル時間 136 ms
コンパイル使用メモリ 82,436 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-09-16 14:59:29
合計ジャッジ時間 2,510 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

A0,B0,C0 = map(int,input().split('.'))
A,B,C = map(int,input().split('.'))

if A0 < A:
    print('NO')
    exit()
if A0 == A:
    if B0 < B:
        print('NO')
        exit()
    if B0==B:
        if C0 < C:
            print('NO')
        else:
            print('YES')
    else:
        print('YES')

else:
    print('YES')
0