結果
| 問題 | No.138 化石のバージョン |
| コンテスト | |
| ユーザー |
HIROPON87069639
|
| 提出日時 | 2016-02-22 00:04:56 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 84 ms / 5,000 ms |
| コード長 | 332 bytes |
| 記録 | |
| コンパイル時間 | 229 ms |
| コンパイル使用メモリ | 77,988 KB |
| 最終ジャッジ日時 | 2025-12-03 19:27:56 |
|
ジャッジサーバーID (参考情報) |
judge3 / 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