結果

問題 No.99 ジャンピング駒
コンテスト
ユーザー kou_kkk
提出日時 2024-04-29 09:18:54
言語 Nim
(2.2.8)
コンパイル:
nim --nimcache=~ --hints:off -o:a.out -d:release cpp _filename_
実行:
./a.out
結果
AC  
実行時間 9 ms / 5,000 ms
コード長 187 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 3,149 ms
コンパイル使用メモリ 67,408 KB
実行使用メモリ 8,320 KB
最終ジャッジ日時 2026-05-12 23:34:48
合計ジャッジ時間 3,960 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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