結果

問題 No.99 ジャンピング駒
ユーザー diginatudiginatu
提出日時 2014-12-09 23:54:12
言語 D
(dmd 2.105.2)
結果
AC  
実行時間 21 ms / 5,000 ms
コード長 257 bytes
コンパイル時間 757 ms
コンパイル使用メモリ 91,808 KB
実行使用メモリ 6,384 KB
最終ジャッジ日時 2023-09-02 19:23:18
合計ジャッジ時間 1,793 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
6,184 KB
testcase_01 AC 21 ms
6,384 KB
testcase_02 AC 21 ms
6,164 KB
testcase_03 AC 21 ms
5,836 KB
testcase_04 AC 20 ms
5,904 KB
testcase_05 AC 20 ms
5,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.stdio, std.conv, std.math, std.string, std.range, std.array,
       std.algorithm;

void main(){
  readln();
  auto buf = readln().strip().split().map!(to!int)();
  (buf.length.to!int - 2*buf.count!"a%2 == 0".to!int()).abs().writeln();
}
0