結果

問題 No.99 ジャンピング駒
ユーザー kou_kkkkou_kkk
提出日時 2024-04-29 09:18:54
言語 Nim
(2.0.2)
結果
AC  
実行時間 18 ms / 5,000 ms
コード長 187 bytes
コンパイル時間 3,200 ms
コンパイル使用メモリ 64,896 KB
実行使用メモリ 6,784 KB
最終ジャッジ日時 2024-04-29 09:18:58
合計ジャッジ時間 3,884 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

import math, strutils, sugar

let
  _, x = readLine stdin
  ns = newSeq.collect:
    for s in x.split:
      case s[^1]
      of '0', '2', '4', '6', '8': 1
      else: -1

echo abs sum ns
0