結果
問題 | No.2757 Pin Game |
ユーザー |
![]() |
提出日時 | 2024-11-27 21:09:15 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 69 ms / 2,000 ms |
コード長 | 243 bytes |
コンパイル時間 | 4,046 ms |
コンパイル使用メモリ | 67,088 KB |
実行使用メモリ | 25,984 KB |
最終ジャッジ日時 | 2024-11-27 21:09:22 |
合計ジャッジ時間 | 5,631 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 |
ソースコード
import sequtils, strutilsletnk, xs = stdin.readLine.split.map parseIntn = nk[0]k = nk[1]varcnt = 1l = xs[0]if n == 1:echo 1quit()for i in 1 ..< n:letr = xs[i]if r - l >= k:inc cntl = recho cnt