結果
| 問題 | No.3402 [Cherry Anniversary 5] Beyond Zelkova, the 5th year vista seen through the bloom of a cherry bloosom |
| コンテスト | |
| ユーザー |
hiromi_ayase
|
| 提出日時 | 2025-12-09 22:05:31 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 10 ms / 2,000 ms |
| コード長 | 1,030 bytes |
| 記録 | |
| コンパイル時間 | 5,274 ms |
| コンパイル使用メモリ | 335,236 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2025-12-09 22:05:40 |
| 合計ジャッジ時間 | 6,916 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 24 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using i32 = int;
using u32 = unsigned int;
using i64 = long long;
using u64 = unsigned long long;
#define FAST_IO \
ios::sync_with_stdio(false); \
cin.tie(0);
const i64 INF = 1001001001001001001;
using Modint = atcoder::static_modint<998244353>;
using namespace std::chrono;
int main() {
FAST_IO
int ys, ms, ds, ye, me, de;
cin >> ys >> ms >> ds;
cin >> ye >> me >> de;
year_month_day from{year(ys), month(ms), day(ds)};
year_month_day to{year(ye), month(me), day(de)};
year_month_day from2 = sys_days(to) + days{1};
auto b = (sys_days(to) - sys_days(from)).count() + 1;
int Q;
cin >> Q;
while (Q--) {
int y, m, d;
cin >> y >> m >> d;
year_month_day to2{year(y), month(m), day(d)};
auto a = (sys_days(to2) - sys_days(from2)).count() + 1;
if (a < b) {
cout << "Less" << "\n";
} else if (a == b) {
cout << "Same" << "\n";
} else {
cout << "More" << "\n";
}
}
}
hiromi_ayase