結果
| 問題 |
No.99 ジャンピング駒
|
| コンテスト | |
| ユーザー |
diginatu
|
| 提出日時 | 2014-12-09 23:54:12 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
AC
|
| 実行時間 | 21 ms / 5,000 ms |
| コード長 | 257 bytes |
| コンパイル時間 | 981 ms |
| コンパイル使用メモリ | 102,512 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-12 01:47:44 |
| 合計ジャッジ時間 | 2,124 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
import std.stdio, std.conv, std.math, std.string, std.range, std.array,
std.algorithm;
void main(){
readln();
auto buf = readln().strip().split().map!(to!int)();
(buf.length.to!int - 2*buf.count!"a%2 == 0".to!int()).abs().writeln();
}
diginatu