結果
問題 | No.99 ジャンピング駒 |
ユーザー |
![]() |
提出日時 | 2023-06-28 18:37:05 |
言語 | C# (.NET 8.0.404) |
結果 |
AC
|
実行時間 | 84 ms / 5,000 ms |
コード長 | 416 bytes |
コンパイル時間 | 7,316 ms |
コンパイル使用メモリ | 165,532 KB |
実行使用メモリ | 197,660 KB |
最終ジャッジ日時 | 2024-07-05 11:53:45 |
合計ジャッジ時間 | 8,862 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (80 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/
ソースコード
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))); } } }