結果

問題 No.1908 Assault for Keys
ユーザー n_getn_get
提出日時 2022-07-13 13:42:17
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 148 ms / 2,000 ms
コード長 269 bytes
コンパイル時間 330 ms
コンパイル使用メモリ 7,080 KB
実行使用メモリ 13,912 KB
最終ジャッジ日時 2023-09-06 22:17:57
合計ジャッジ時間 4,175 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
13,912 KB
testcase_01 AC 17 ms
11,796 KB
testcase_02 AC 136 ms
12,020 KB
testcase_03 AC 122 ms
11,724 KB
testcase_04 AC 125 ms
11,912 KB
testcase_05 AC 132 ms
11,908 KB
testcase_06 AC 135 ms
11,848 KB
testcase_07 AC 125 ms
11,740 KB
testcase_08 AC 123 ms
11,964 KB
testcase_09 AC 127 ms
11,948 KB
testcase_10 AC 124 ms
11,936 KB
testcase_11 AC 131 ms
11,808 KB
testcase_12 AC 131 ms
11,952 KB
testcase_13 AC 139 ms
11,944 KB
testcase_14 AC 134 ms
13,748 KB
testcase_15 AC 128 ms
11,748 KB
testcase_16 AC 18 ms
11,720 KB
testcase_17 AC 18 ms
11,800 KB
testcase_18 AC 148 ms
11,728 KB
testcase_19 AC 113 ms
11,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define N (read))
(define M (read))
(define v (make-vector M 0))
(dotimes [i N]
         (read-line)
         (dotimes [j M]
                  (when (char=? (read-char) #\x)
                        (inc! (vector-ref v j)))))
(print (+ 1 (fold max 0 (vector->list v))))
0