結果

問題 No.99 ジャンピング駒
ユーザー kou_kkkkou_kkk
提出日時 2024-04-28 16:39:59
言語 Nim
(2.0.2)
結果
AC  
実行時間 25 ms / 5,000 ms
コード長 167 bytes
コンパイル時間 4,288 ms
コンパイル使用メモリ 65,536 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-04-28 16:40:04
合計ジャッジ時間 5,018 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
10,496 KB
testcase_01 AC 25 ms
10,368 KB
testcase_02 AC 25 ms
10,368 KB
testcase_03 AC 25 ms
10,368 KB
testcase_04 AC 25 ms
10,496 KB
testcase_05 AC 25 ms
10,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sequtils, strutils

let
  _, xs = stdin.readLine.split.map parseInt
var
  cnt = 0

for x in xs:
  if x mod 2 == 0:
    inc cnt
  else:
    dec cnt

echo abs cnt
0