結果
| 問題 | No.3402 [Cherry Anniversary 5] Beyond Zelkova, the 5th year vista seen through the bloom of a cherry bloosom |
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2025-12-09 02:01:56 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 462 ms / 2,000 ms |
| コード長 | 478 bytes |
| 記録 | |
| コンパイル時間 | 390 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 79,856 KB |
| 最終ジャッジ日時 | 2025-12-09 02:02:06 |
| 合計ジャッジ時間 | 8,817 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 24 |
ソースコード
from datetime import date, timedelta
Y1, M1, D1 = map(int, input().split())
Y2, M2, D2 = map(int, input().split())
date1 = date(Y1, M1, D1)
date2 = date(Y2, M2, D2)
b = date2 - date1
Q = int(input())
for _ in range(Q):
y, m, d = map(int, input().split())
date3 = date(y, m, d)
a = date(y, m, d) - (date(Y2, M2, D2) + timedelta(days=1))
if a.days < b.days:
print('Less')
elif a.days == b.days:
print('Same')
else:
print('More')
norioc