結果

問題 No.71 そろばん
ユーザー mbanmban
提出日時 2017-01-01 20:05:50
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 56 ms / 5,000 ms
コード長 436 bytes
コンパイル時間 4,759 ms
コンパイル使用メモリ 102,384 KB
実行使用メモリ 22,848 KB
最終ジャッジ日時 2023-08-22 09:13:52
合計ジャッジ時間 7,503 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
20,556 KB
testcase_01 AC 55 ms
20,708 KB
testcase_02 AC 55 ms
18,644 KB
testcase_03 AC 55 ms
20,708 KB
testcase_04 AC 55 ms
20,780 KB
testcase_05 AC 55 ms
20,616 KB
testcase_06 AC 56 ms
20,804 KB
testcase_07 AC 55 ms
18,592 KB
testcase_08 AC 56 ms
22,604 KB
testcase_09 AC 55 ms
22,772 KB
testcase_10 AC 56 ms
22,756 KB
testcase_11 AC 55 ms
20,616 KB
testcase_12 AC 55 ms
20,788 KB
testcase_13 AC 55 ms
20,692 KB
testcase_14 AC 55 ms
18,532 KB
testcase_15 AC 56 ms
22,844 KB
testcase_16 AC 56 ms
20,808 KB
testcase_17 AC 55 ms
22,848 KB
testcase_18 AC 54 ms
18,856 KB
testcase_19 AC 56 ms
20,748 KB
testcase_20 AC 56 ms
20,636 KB
testcase_21 AC 56 ms
20,876 KB
testcase_22 AC 56 ms
18,732 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
using System.Text.RegularExpressions;
using System.Linq;


class Magatro
{
    static long N = long.Parse(Console.ReadLine());
    static void Main()
    {
        long Ue, Sita;
       Ue = N / 2;
        Sita = N - Ue;
        long ans = Ue * (Sita + 1) + Sita;
        Console.WriteLine(ans);
    }
}

0