結果
| 問題 | No.138 化石のバージョン |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-05-07 09:24:40 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 29 ms / 5,000 ms |
| コード長 | 330 bytes |
| 記録 | |
| コンパイル時間 | 308 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 52,096 KB |
| 最終ジャッジ日時 | 2026-04-04 15:29:50 |
| 合計ジャッジ時間 | 2,188 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 |
ソースコード
A0,B0,C0 = map(int,input().split("."))
A1,B1,C1 = map(int,input().split("."))
if A1 < A0:
print("YES")
elif A1 == A0:
if B1 < B0:
print("YES")
elif B1 == B0:
if C1 <= C0:
print("YES")
else:
print("NO")
else:
print("NO")
else:
print("NO")