結果

問題 No.836 じょうよ
ユーザー MaboyMaboy
提出日時 2021-06-26 12:19:26
言語 Swift
(5.10.0)
結果
AC  
実行時間 22 ms / 1,000 ms
コード長 256 bytes
コンパイル時間 1,492 ms
コンパイル使用メモリ 127,548 KB
実行使用メモリ 10,452 KB
最終ジャッジ日時 2023-09-07 13:46:46
合計ジャッジ時間 3,452 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
10,352 KB
testcase_01 AC 3 ms
8,328 KB
testcase_02 AC 4 ms
8,276 KB
testcase_03 AC 3 ms
8,236 KB
testcase_04 AC 3 ms
8,216 KB
testcase_05 AC 3 ms
8,224 KB
testcase_06 AC 3 ms
8,232 KB
testcase_07 AC 3 ms
8,228 KB
testcase_08 AC 3 ms
8,328 KB
testcase_09 AC 4 ms
8,216 KB
testcase_10 AC 3 ms
8,312 KB
testcase_11 AC 5 ms
8,444 KB
testcase_12 AC 6 ms
8,452 KB
testcase_13 AC 5 ms
8,520 KB
testcase_14 AC 3 ms
8,256 KB
testcase_15 AC 5 ms
8,548 KB
testcase_16 AC 22 ms
10,452 KB
testcase_17 AC 21 ms
10,260 KB
testcase_18 AC 5 ms
8,508 KB
testcase_19 AC 6 ms
8,440 KB
testcase_20 AC 14 ms
9,140 KB
testcase_21 AC 4 ms
8,368 KB
testcase_22 AC 10 ms
8,536 KB
testcase_23 AC 19 ms
9,540 KB
testcase_24 AC 4 ms
8,492 KB
testcase_25 AC 8 ms
8,496 KB
testcase_26 AC 4 ms
8,276 KB
testcase_27 AC 4 ms
8,304 KB
testcase_28 AC 5 ms
8,440 KB
testcase_29 AC 4 ms
8,376 KB
testcase_30 AC 4 ms
8,360 KB
testcase_31 AC 5 ms
8,456 KB
testcase_32 AC 5 ms
8,448 KB
testcase_33 AC 4 ms
8,436 KB
testcase_34 AC 5 ms
8,424 KB
testcase_35 AC 5 ms
8,448 KB
testcase_36 AC 12 ms
8,672 KB
testcase_37 AC 11 ms
8,868 KB
testcase_38 AC 14 ms
9,016 KB
testcase_39 AC 13 ms
8,732 KB
testcase_40 AC 22 ms
10,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

let N = readLine()!.split(separator: " ").map{Int($0)!}
var (l,r,n) = (N[0],N[1],N[2])
var a = (r - l + 1) / n
var ans = [Int](repeating: a, count: n)
for i in (l + a * n)..<(r + 1){
    ans[i % n] += 1
}
print(ans.map{String($0)}.joined(separator: "\n"))
0