結果

問題 No.3402 [Cherry Anniversary 5] Beyond Zelkova, the 5th year vista seen through the bloom of a cherry bloosom
コンテスト
ユーザー igeee
提出日時 2025-12-16 23:52:29
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 437 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 193 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 11,648 KB
最終ジャッジ日時 2025-12-16 23:52:33
合計ジャッジ時間 3,293 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 1
other RE * 24
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import datetime
ys,ms,ds = map(int,input().split())
dt1 = datetime.date(year=ys, month=ms, day=ds)
ye,me,de = map(int,input().split())
de+= 1
dt2 = datetime.date(year=ye, month=me, day=de)
q = int(input())
b = dt2-dt1
for _ in range(q):
  y,m,d = map(int,input().split())
  dt = datetime.date(year=y, month=m, day=d)
  a = dt-dt2
  a+= 1

  if(a < b):
    print("Less")
  elif a == b:
    print("Same")
  else :
    print("More")
  

  
0