結果

問題 No.1908 Assault for Keys
コンテスト
ユーザー n_get
提出日時 2022-07-13 13:42:17
言語 Scheme
(Gauche-0.9.15)
コンパイル:
true
実行:
gosh _filename_
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 269 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 113 ms
コンパイル使用メモリ 7,844 KB
実行使用メモリ 16,384 KB
最終ジャッジ日時 2026-03-10 20:28:14
合計ジャッジ時間 3,158 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

(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