結果
| 問題 | No.138 化石のバージョン |
| コンテスト | |
| ユーザー |
kekenx
|
| 提出日時 | 2020-03-05 23:25:30 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 21 ms / 5,000 ms |
| + 157µs | |
| コード長 | 431 bytes |
| 記録 | |
| コンパイル時間 | 58 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-09-16 04:00:53 |
| 合計ジャッジ時間 | 2,807 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 |
ソースコード
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
s = readline().decode().strip()
s2 = readline().decode().strip()
first = s.split(".")
f = [int(x) for x in first]
second = s2.split(".")
s = [int(x) for x in second]
if (s[0] < f[0] or (s[0] <= f[0] and s[1] < f[1]) or (s[0] <= f[0] and s[1] <= f[1] and s[2] <= f[2])):
print("YES");
else :
print("NO");
kekenx