結果

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

テストケース

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

ソースコード

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 s:array[11,char]
var p = 0
for _ in 0..<n:
  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)
0