結果

問題 No.2610 Decreasing LCMs
ユーザー heno239heno239
提出日時 2024-02-05 17:06:29
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 59 ms / 1,000 ms
コード長 747 bytes
コンパイル時間 12,053 ms
コンパイル使用メモリ 157,748 KB
実行使用メモリ 178,196 KB
最終ジャッジ日時 2024-02-05 17:06:45
合計ジャッジ時間 10,492 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
31,908 KB
testcase_01 AC 56 ms
31,908 KB
testcase_02 AC 54 ms
31,780 KB
testcase_03 AC 55 ms
31,780 KB
testcase_04 AC 56 ms
31,780 KB
testcase_05 AC 56 ms
31,908 KB
testcase_06 AC 55 ms
31,908 KB
testcase_07 AC 56 ms
31,908 KB
testcase_08 AC 58 ms
31,908 KB
testcase_09 AC 56 ms
31,908 KB
testcase_10 AC 56 ms
31,908 KB
testcase_11 AC 55 ms
31,908 KB
testcase_12 AC 57 ms
31,908 KB
testcase_13 AC 59 ms
31,908 KB
testcase_14 AC 55 ms
31,908 KB
testcase_15 AC 56 ms
31,908 KB
testcase_16 AC 55 ms
31,908 KB
testcase_17 AC 56 ms
31,908 KB
testcase_18 AC 56 ms
31,908 KB
testcase_19 AC 56 ms
31,908 KB
testcase_20 AC 56 ms
31,908 KB
testcase_21 AC 55 ms
31,908 KB
testcase_22 AC 59 ms
178,196 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (92 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.Collections;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

internal class Program
{
    private const long mod = 998244353;
    

    public static void Main(string[] args)
    {
        var n = int.Parse(Console.ReadLine());
        var ans = new List<int>(n);
        int cur = 1 << n;
        ans.Add(cur);
        for (int i = n - 2; i >= 0; i--)
        {
            cur -= (1 << i);
            ans.Add(cur);
        }

        ans.Reverse();
        Console.WriteLine(String.Join(" ",ans));
    }

    public static List<int> mkar(int n, int val)
    {
        List<int> res = new List<int>(n);
        for(int i=0;i<n;i++)res.Add(val);
        return res;
    }
}
0