結果
| 問題 | No.3402 [Cherry Anniversary 5] Beyond Zelkova, the 5th year vista seen through the bloom of a cherry bloosom |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-09 16:27:44 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 67 ms / 2,000 ms |
| コード長 | 698 bytes |
| 記録 | |
| コンパイル時間 | 299 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 16,024 KB |
| 最終ジャッジ日時 | 2025-12-09 16:27:48 |
| 合計ジャッジ時間 | 2,635 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 24 |
ソースコード
import sys
from datetime import date
def main():
data = list(map(int, sys.stdin.read().split()))
it = iter(data)
ys = next(it); ms = next(it); ds = next(it)
ye = next(it); me = next(it); de = next(it)
Q = next(it)
start_old = date(ys, ms, ds)
end_old = date(ye, me, de)
b = (end_old - start_old).days + 1
out = []
for _ in range(Q):
y = next(it); m = next(it); d = next(it)
qd = date(y, m, d)
a = (qd - end_old).days
if a < b:
out.append("Less")
elif a == b:
out.append("Same")
else:
out.append("More")
print("\n".join(out))
if __name__ == "__main__":
main()