結果

問題 No.2647 [Cherry 6th Tune A] Wind
ユーザー 👑 kakel-sankakel-san
提出日時 2024-02-23 21:23:51
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 93 ms / 2,000 ms
コード長 752 bytes
コンパイル時間 14,371 ms
コンパイル使用メモリ 158,992 KB
実行使用メモリ 178,896 KB
最終ジャッジ日時 2024-02-23 21:24:09
合計ジャッジ時間 17,366 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
32,676 KB
testcase_01 AC 83 ms
33,316 KB
testcase_02 AC 84 ms
33,188 KB
testcase_03 AC 84 ms
33,444 KB
testcase_04 AC 83 ms
33,060 KB
testcase_05 AC 85 ms
33,572 KB
testcase_06 AC 85 ms
33,572 KB
testcase_07 AC 84 ms
33,444 KB
testcase_08 AC 87 ms
33,700 KB
testcase_09 AC 93 ms
34,596 KB
testcase_10 AC 87 ms
34,596 KB
testcase_11 AC 92 ms
36,004 KB
testcase_12 AC 88 ms
36,004 KB
testcase_13 AC 81 ms
178,896 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (103 ms)。
MSBuild のバージョン 17.7.3+8ec440e68 (.NET)
  main -> /home/judge/data/code/bin/Release/net7.0/main.dll
  main -> /home/judge/data/code/bin/Release/net7.0/publish/

ソースコード

diff #

using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;

class Program
{
    static int NN => int.Parse(ReadLine());
    static long[] NList => ReadLine().Split().Select(long.Parse).ToArray();
    public static void Main()
    {
        Solve();
    }
    static void Solve()
    {
        var t = NN;
        var ans = new string[t];
        for (var u = 0; u < t; ++u)
        {
            var c = NList;
            var (d, a) = (c[0], c[1]);
            var x = NList;
            var sub = new long[d];
            for (var i = 0; i < d; ++i) sub[i] = (x[i] + a / 2) / a;
            ans[u] = string.Join(" ", sub);
        }
        WriteLine(string.Join("\n", ans));
    }
}
0