結果
| 問題 | No.3402 [Cherry Anniversary 5] Beyond Zelkova, the 5th year vista seen through the bloom of a cherry bloosom |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-25 22:06:34 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
AC
|
| 実行時間 | 101 ms / 2,000 ms |
| コード長 | 969 bytes |
| 記録 | |
| コンパイル時間 | 8,404 ms |
| コンパイル使用メモリ | 170,948 KB |
| 実行使用メモリ | 187,436 KB |
| 最終ジャッジ日時 | 2025-12-25 22:06:53 |
| 合計ジャッジ時間 | 12,547 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 24 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (118 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;
class Program
{
static int NN => int.Parse(ReadLine());
static int[] NList => ReadLine().Split().Select(int.Parse).ToArray();
public static void Main()
{
Solve();
}
static void Solve()
{
var cs = NList;
var ce = NList;
var ds = new DateTime(cs[0], cs[1], cs[2]);
var de = new DateTime(ce[0], ce[1], ce[2]);
var before = (de - ds).Days;
var q = NN;
var ans = new string[q];
for (var i = 0; i < q; ++i)
{
var cq = NList;
var dq = new DateTime(cq[0], cq[1], cq[2]);
var after = (dq - de).Days - 1;
if (after < before) ans[i] = "Less";
else if (after == before) ans[i] = "Same";
else ans[i] = "More";
}
WriteLine(string.Join("\n", ans));
}
}