結果

問題 No.1461 しあはせや歩みゆく?
ユーザー bluemeganebluemegane
提出日時 2021-04-02 22:37:22
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 47 ms / 2,000 ms
コード長 311 bytes
コンパイル時間 1,040 ms
コンパイル使用メモリ 65,044 KB
実行使用メモリ 24,828 KB
最終ジャッジ日時 2023-08-25 12:49:29
合計ジャッジ時間 3,911 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
20,684 KB
testcase_01 AC 47 ms
20,736 KB
testcase_02 AC 46 ms
18,604 KB
testcase_03 AC 46 ms
18,700 KB
testcase_04 AC 45 ms
22,660 KB
testcase_05 AC 47 ms
20,780 KB
testcase_06 AC 45 ms
20,656 KB
testcase_07 AC 46 ms
20,656 KB
testcase_08 AC 45 ms
22,704 KB
testcase_09 AC 46 ms
22,756 KB
testcase_10 AC 44 ms
20,724 KB
testcase_11 AC 47 ms
22,700 KB
testcase_12 AC 46 ms
22,696 KB
testcase_13 AC 45 ms
20,744 KB
testcase_14 AC 45 ms
22,712 KB
testcase_15 AC 46 ms
20,656 KB
testcase_16 AC 45 ms
20,732 KB
testcase_17 AC 45 ms
20,732 KB
testcase_18 AC 46 ms
22,700 KB
testcase_19 AC 46 ms
22,768 KB
testcase_20 AC 46 ms
18,728 KB
testcase_21 AC 46 ms
22,764 KB
testcase_22 AC 45 ms
20,808 KB
testcase_23 AC 45 ms
20,648 KB
testcase_24 AC 45 ms
20,848 KB
testcase_25 AC 44 ms
20,680 KB
testcase_26 AC 46 ms
22,684 KB
testcase_27 AC 45 ms
20,648 KB
testcase_28 AC 45 ms
22,672 KB
testcase_29 AC 45 ms
20,704 KB
testcase_30 AC 46 ms
24,828 KB
testcase_31 AC 45 ms
20,692 KB
testcase_32 AC 46 ms
20,640 KB
testcase_33 AC 45 ms
20,708 KB
testcase_34 AC 45 ms
22,728 KB
testcase_35 AC 44 ms
20,676 KB
testcase_36 AC 46 ms
22,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;

public class Hello
{
    static void Main()
    {
        var n = long.Parse(Console.ReadLine().Trim());
        getAns(n);
    }
    static void getAns(long n)
    {
        if (n < 3) { Console.WriteLine(n); return; }
        var ans = (n - 3) * 5L + 3;
        Console.WriteLine(ans);
    }
}
0