結果
| 問題 | No.3402 [Cherry Anniversary 5] Beyond Zelkova, the 5th year vista seen through the bloom of a cherry bloosom |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-12 21:22:47 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 251 ms / 2,000 ms |
| + 259µs | |
| コード長 | 332 bytes |
| 記録 | |
| コンパイル時間 | 226 ms |
| コンパイル使用メモリ | 96,492 KB |
| 実行使用メモリ | 87,356 KB |
| 最終ジャッジ日時 | 2026-07-19 10:57:00 |
| 合計ジャッジ時間 | 6,568 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 24 |
ソースコード
from datetime import date,timedelta
ys,ms,ds=map(int,input().split())
ye,me,de=map(int,input().split())
b=date(ye,me,de)-date(ys,ms,ds)+timedelta(days=1)
Q=int(input())
for _ in range(Q):
y,m,d=map(int,input().split())
a=date(y,m,d)-date(ye,me,de)
if a<b:print("Less")
elif a==b:print("Same")
else:print("More")