結果
問題 | No.111 あばばばば |
ユーザー |
|
提出日時 | 2016-04-28 12:35:19 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 711 ms / 5,000 ms |
コード長 | 259 bytes |
コンパイル時間 | 875 ms |
コンパイル使用メモリ | 108,504 KB |
実行使用メモリ | 25,548 KB |
最終ジャッジ日時 | 2024-10-04 17:16:06 |
合計ジャッジ時間 | 3,178 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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); } }