結果

問題 No.2140 Triangle
ユーザー kou_kkk
提出日時 2025-08-03 13:11:36
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 28 ms / 2,000 ms
コード長 178 bytes
コンパイル時間 3,693 ms
コンパイル使用メモリ 106,128 KB
実行使用メモリ 26,440 KB
最終ジャッジ日時 2025-08-03 13:11:43
合計ジャッジ時間 6,145 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 28
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
 
class Program
{
    static void Main()
    {
        int n = int.Parse(Console.ReadLine());
        int ans = n * 2 - 1;
 
        Console.WriteLine(ans);
    }
}
0