結果

問題 No.138 化石のバージョン
ユーザー brthyyjp
提出日時 2020-11-17 04:52:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 5,000 ms
コード長 250 bytes
コンパイル時間 261 ms
コンパイル使用メモリ 82,280 KB
実行使用メモリ 53,596 KB
最終ジャッジ日時 2024-07-23 01:54:29
合計ジャッジ時間 2,952 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

S = list(map(int, input().split('.')))
T = list(map(int, input().split('.')))

if S == T:
    print('YES')
    exit()

for i in range(3):
    if S[i] > T[i]:
        print('YES')
        exit()
    if  S[i] < T[i]:
        print('NO')
        exit()
0