結果

問題 No.138 化石のバージョン
ユーザー yaoshimax
提出日時 2015-04-30 17:03:43
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 5,000 ms
コード長 256 bytes
コンパイル時間 213 ms
コンパイル使用メモリ 6,948 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2024-12-29 13:12:20
合計ジャッジ時間 1,761 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,C=map(int,raw_input().split("."))
a,b,c=map(int,raw_input().split("."))
if a>A:
    print"NO"
    exit()
if a<A:
    print "YES"
    exit()
if b>B:
    print"NO"
    exit()
if b<B:
    print "YES"
    exit()
if c>C:
    print"NO"
    exit()
print"YES"
0