結果

問題 No.299 蟻本が読めない
ユーザー cccccc
提出日時 2022-08-23 11:26:17
言語 C#
(.NET 8.0.203)
結果
MLE  
(最新)
AC  
(最初)
実行時間 -
コード長 504 bytes
コンパイル時間 18,312 ms
コンパイル使用メモリ 166,468 KB
実行使用メモリ 182,340 KB
最終ジャッジ日時 2024-04-19 01:49:09
合計ジャッジ時間 17,876 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
29,056 KB
testcase_01 AC 50 ms
28,928 KB
testcase_02 AC 50 ms
28,672 KB
testcase_03 MLE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (102 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

using System;
using System.Linq;
using System.Collections.Generic;
using System.Text.RegularExpressions;


class Program
{
    static void Main()
    {
        var N = long.Parse(Console.ReadLine());
        //Console.WriteLine(((N - 1) * 52) + 316);

          long ans = 0;
        if (N >= 2)
            {
                ans = 316 + (52 * (N - 1));
            }
            else if(N==1)
            {
                ans = N * 316;
            }
            Console.WriteLine(ans);
       
    }
}
0