結果
| 問題 | No.99 ジャンピング駒 |
| コンテスト | |
| ユーザー |
Adamantite
|
| 提出日時 | 2023-06-28 18:37:05 |
| 言語 | C# (.NET 10.0.201) |
| 結果 |
AC
|
| 実行時間 | 50 ms / 5,000 ms |
| コード長 | 416 bytes |
| 記録 | |
| コンパイル時間 | 15,185 ms |
| コンパイル使用メモリ | 171,748 KB |
| 実行使用メモリ | 208,836 KB |
| 最終ジャッジ日時 | 2026-03-26 19:18:40 |
| 合計ジャッジ時間 | 8,063 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (90 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net10.0/main.dll main -> /home/judge/data/code/bin/Release/net10.0/publish/
ソースコード
using System;
using System.Linq;
namespace No99_JumpingPiece
{
internal class Program
{
static void Main(string[] args) {
int n = int.Parse(Console.ReadLine());
long[] array = Array.ConvertAll(Console.ReadLine().Split(' '), x => long.Parse(x));
Console.WriteLine(Math.Abs(array.Count(x => x % 2 == 0) - array.Count(x => Math.Abs(x) % 2 == 1)));
}
}
}
Adamantite