結果
| 問題 | No.3402 [Cherry Anniversary 5] Beyond Zelkova, the 5th year vista seen through the bloom of a cherry bloosom |
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2025-12-09 02:00:49 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 447 bytes |
| 記録 | |
| コンパイル時間 | 371 ms |
| コンパイル使用メモリ | 82,584 KB |
| 実行使用メモリ | 78,808 KB |
| 最終ジャッジ日時 | 2025-12-09 02:00:58 |
| 合計ジャッジ時間 | 7,948 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 23 RE * 1 |
ソースコード
from datetime import date
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+1)
if a.days < b.days:
print('Less')
elif a.days == b.days:
print('Same')
else:
print('More')
norioc