結果

問題 No.480 合計
ユーザー eiken7kyuu
提出日時 2019-06-04 14:37:36
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 456 bytes
コンパイル時間 2,011 ms
コンパイル使用メモリ 109,356 KB
実行使用メモリ 25,428 KB
最終ジャッジ日時 2024-09-17 20:47:41
合計ジャッジ時間 3,362 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 22
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            y();
        }

        static void y()
        {
            var sum = 0;
            for (int i = 1; i <= int.Parse(Console.ReadLine()); i++)
            {
                sum += i;
            }
            Console.WriteLine(sum);
        }

    }
}
0