結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-05-07 09:24:40 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 43 ms / 5,000 ms |
| コード長 | 330 bytes |
| コンパイル時間 | 173 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 51,968 KB |
| 最終ジャッジ日時 | 2024-09-14 22:25:23 |
| 合計ジャッジ時間 | 2,733 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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")