結果
| 問題 | No.111 あばばばば |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-04-28 12:35:19 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 462 ms / 5,000 ms |
| コード長 | 259 bytes |
| 記録 | |
| コンパイル時間 | 471 ms |
| コンパイル使用メモリ | 103,296 KB |
| 実行使用メモリ | 18,304 KB |
| 最終ジャッジ日時 | 2026-04-20 11:42:31 |
| 合計ジャッジ時間 | 2,360 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
public class Program {
public static void Main() {
long n = long.Parse(Console.ReadLine());
long ans = 0;
for (long i = 3; i <= n; i += 2) {
ans += n-i+1;
}
Console.WriteLine(ans);
}
}