結果
| 問題 | No.3402 [Cherry Anniversary 5] Beyond Zelkova, the 5th year vista seen through the bloom of a cherry bloosom |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2025-12-09 03:03:08 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 161 ms / 2,000 ms |
| コード長 | 436 bytes |
| 記録 | |
| コンパイル時間 | 268 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 10,496 KB |
| 最終ジャッジ日時 | 2025-12-09 03:03:13 |
| 合計ジャッジ時間 | 3,886 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 24 |
ソースコード
import sys
input = sys.stdin.readline
from datetime import datetime
ys,ms,ds=map(int,input().split())
ye,me,de=map(int,input().split())
X=datetime(ys,ms,ds)
Y=datetime(ye,me,de)
Q=int(input())
for tests in range(Q):
y,m,d=map(int,input().split())
Z=datetime(y,m,d)
A=Y-X
B=Z-Y
if A.days+1==B.days:
print("Same")
elif A.days+1>B.days:
print("Less")
else:
print("More")
titia