結果
問題 |
No.99 ジャンピング駒
|
ユーザー |
|
提出日時 | 2019-01-16 19:09:56 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 12 ms / 5,000 ms |
コード長 | 377 bytes |
コンパイル時間 | 2,140 ms |
コンパイル使用メモリ | 60,824 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-01 06:31:37 |
合計ジャッジ時間 | 2,791 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
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)