結果

問題 No.276 連続する整数の和(1)
ユーザー 抹茶アイス抹茶アイス
提出日時 2023-07-28 10:03:54
言語 C#
(.NET 8.0.203)
結果
WA  
実行時間 -
コード長 255 bytes
コンパイル時間 9,590 ms
コンパイル使用メモリ 166,596 KB
実行使用メモリ 181,420 KB
最終ジャッジ日時 2024-04-15 19:05:31
合計ジャッジ時間 11,039 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
28,912 KB
testcase_01 AC 51 ms
28,764 KB
testcase_02 AC 51 ms
28,644 KB
testcase_03 WA -
testcase_04 AC 52 ms
28,416 KB
testcase_05 WA -
testcase_06 AC 51 ms
28,928 KB
testcase_07 WA -
testcase_08 AC 51 ms
28,672 KB
testcase_09 AC 51 ms
181,420 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (94 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;

namespace yukicoder
{
	public class Program
	{
		public static void Main()
		{
			var n = int.Parse(Console.ReadLine());
			var k = 1 - n % 2;
			Console.WriteLine(n - k);
        }
	}
}
0