結果

問題 No.99 ジャンピング駒
ユーザー むらためむらため
提出日時 2019-01-16 19:09:56
言語 Nim
(2.0.2)
結果
AC  
実行時間 12 ms / 5,000 ms
コード長 377 bytes
コンパイル時間 2,138 ms
コンパイル使用メモリ 66,100 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-13 22:15:31
合計ジャッジ時間 2,770 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

proc printf(formatstr: cstring){.header: "<stdio.h>", varargs.}
proc scanf(formatstr: cstring){.header: "<stdio.h>", varargs.}
var n :int32
scanf("%d\n",addr n)
var p = 0
for _ in 0..<n:
  var s:array[11,char]
  scanf("%s",addr s)
  for i in countdown(10,0):
    if s[i].ord < '0'.ord :continue
    if s[i].ord mod 2 == 0: p += 1
    else: p -= 1
    break
printf("%d\n",p.abs)
0