結果
| 問題 | No.3402 [Cherry Anniversary 5] Beyond Zelkova, the 5th year vista seen through the bloom of a cherry bloosom |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-09 00:03:39 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 312 ms / 2,000 ms |
| コード長 | 390 bytes |
| 記録 | |
| コンパイル時間 | 161 ms |
| コンパイル使用メモリ | 12,032 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2025-12-09 00:03:46 |
| 合計ジャッジ時間 | 6,282 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 24 |
ソースコード
import datetime
y,m,d=map(int,input().split())
S=datetime.datetime(y,m,d)
y,m,d=map(int,input().split())
E=datetime.datetime(y,m,d)
Q=int(input())
for q in range(Q):
y,m,d=map(int,input().split())
d=datetime.datetime(y,m,d)
a=E-S
a+=datetime.timedelta(1)
b=d-E
if b<a:
print("Less")
elif b==a:
print("Same")
else:
print("More")