結果

問題 No.3468 あるジャッジサーバー
コンテスト
ユーザー kou_kkk
提出日時 2026-11-19 15:13:34
言語 Nim
(2.2.12 + ACL)
コンパイル:
nim --nimcache=~ --hints:off -o:a.out -d:release cpp _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 2,000 ms
+ 954µs
コード長 251 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,803 ms
コンパイル使用メモリ 70,092 KB
実行使用メモリ 9,836 KB
最終ジャッジ日時 2026-11-19 15:13:40
合計ジャッジ時間 5,093 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge4_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sequtils, strutils

let
  n = parseInt stdin.readLine
  ts = stdin.readLine.split.map parseInt
  ss = stdin.readLine.split.map parseInt
var
  cnt = 0
  time = 0

for i in 0..<n:
  if time <= ss[i]:
    time = ss[i] + ts[i]
    cnt.inc

echo cnt
0