結果

問題 No.1636 森
ユーザー cccccc
提出日時 2022-07-29 10:47:29
言語 C#
(.NET 7.0.402)
結果
AC  
実行時間 49 ms / 2,000 ms
コード長 252 bytes
コンパイル時間 7,952 ms
コンパイル使用メモリ 148,148 KB
実行使用メモリ 165,832 KB
最終ジャッジ日時 2023-09-26 06:59:51
合計ジャッジ時間 10,417 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
27,916 KB
testcase_01 AC 47 ms
28,292 KB
testcase_02 AC 48 ms
28,328 KB
testcase_03 AC 46 ms
27,896 KB
testcase_04 AC 46 ms
27,800 KB
testcase_05 AC 46 ms
28,092 KB
testcase_06 AC 47 ms
30,076 KB
testcase_07 AC 45 ms
28,152 KB
testcase_08 AC 47 ms
28,088 KB
testcase_09 AC 47 ms
30,228 KB
testcase_10 AC 45 ms
27,896 KB
testcase_11 AC 47 ms
27,972 KB
testcase_12 AC 47 ms
28,152 KB
testcase_13 AC 46 ms
28,040 KB
testcase_14 AC 45 ms
28,100 KB
testcase_15 AC 47 ms
27,936 KB
testcase_16 AC 46 ms
27,832 KB
testcase_17 AC 47 ms
29,900 KB
testcase_18 AC 47 ms
30,028 KB
testcase_19 AC 47 ms
27,888 KB
testcase_20 AC 46 ms
27,796 KB
testcase_21 AC 46 ms
165,832 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  Determining projects to restore...
  Restored /home/judge/data/code/main.csproj (in 222 ms).
.NET 向け Microsoft (R) Build Engine バージョン 17.0.0-preview-21470-01+cb055d28f
Copyright (C) Microsoft Corporation.All rights reserved.

  プレビュー版の .NET を使用しています。https://aka.ms/dotnet-core-preview をご覧ください
  main -> /home/judge/data/code/bin/Release/net6.0/main.dll
  main -> /home/judge/data/code/bin/Release/net6.0/publish/

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;

class Program
{
    static void Main()
    {
        var inp = int.Parse(Console.ReadLine());
        
        var ans = Math.Pow((inp -1), 2);
        Console.WriteLine(ans);

    }
}
0