結果
| 問題 | No.99 ジャンピング駒 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-01-16 19:07:51 |
| 言語 | Nim (2.2.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 375 bytes |
| 記録 | |
| コンパイル時間 | 2,168 ms |
| コンパイル使用メモリ | 60,840 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-01 06:31:30 |
| 合計ジャッジ時間 | 2,792 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 4 |
ソースコード
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.abs)