結果
| 問題 | No.3324 ハイライト動画 |
| コンテスト | |
| ユーザー |
ID 21712
|
| 提出日時 | 2025-12-04 03:20:30 |
| 言語 | Go (1.27.2 + ACL) |
| 結果 |
TLE
不安定
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 345 bytes |
| 記録 | |
| コンパイル時間 | 13,222 ms |
| コンパイル使用メモリ | 259,328 KB |
| 実行使用メモリ | 12,556 KB |
| 最終ジャッジ日時 | 2026-10-27 16:24:59 |
| 合計ジャッジ時間 | 52,348 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 TLE * 8 |
ソースコード
package main
import . "fmt"
func main() {
var n,m int
Scan(&n,&m)
s,c := -1,0
ss,ll := []int{},[]int{}
for ;m>0;m-- {
var a int
Scan(&a)
if a-s > 1 {
if c != 0{
ll = append(ll, c)
}
ss = append(ss, a)
c = 0
}
s = a
c++
}
ll = append(ll, c)
Println(len(ss))
for i := range ss {
Println(ss[i], ll[i])
}
}
ID 21712