結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
HIROPON87069639
|
| 提出日時 | 2016-02-22 00:04:56 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 12 ms / 5,000 ms |
| コード長 | 332 bytes |
| コンパイル時間 | 159 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-29 13:50:46 |
| 合計ジャッジ時間 | 1,560 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 |
ソースコード
# -*- coding: utf-8 -*-
OLD = map(int, raw_input().split("."))
NEW = map(int, raw_input().split("."))
for i in range(0, 3):
if OLD[i] < NEW[i]:
print "NO"
exit()
elif OLD[i] > NEW[i]:
print "YES"
exit()
elif OLD[i] == NEW[i]:
if i == 2:
print "YES"
exit()
HIROPON87069639