結果

問題 No.3468 あるジャッジサーバー
コンテスト
ユーザー ID 21712
提出日時 2026-04-17 14:10:10
言語 Go
(1.26.1)
コンパイル:
env GOCACHE=/tmp go build _filename_
実行:
./Main
結果
AC  
実行時間 11 ms / 2,000 ms
コード長 271 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 12,263 ms
コンパイル使用メモリ 290,916 KB
実行使用メモリ 7,972 KB
最終ジャッジ日時 2026-04-17 14:10:25
合計ジャッジ時間 13,699 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

package main

import . "fmt"

func main() {
	var n int
	Scan(&n)
	ts := make([]int, n)
	for i := range ts {
		Scan(&ts[i])
	}
	count := 0
	last := 0
	for _, t := range ts {
		var s int
		Scan(&s)
		if last < s*10 {
			last = (s+t)*10-1
			count++
		}
	}
	Println(count)
}
0