Please sign in first.
提出 #16975701
ソースコード 拡げる
use proconio::input;
fn main() {
input! {
n: usize,
k: usize,
s: usize,
};
for i in 0..n {
print!(
"{}{}",
if i < k {
s
} else {
if s + 1 > 1_000_000_000 {
1
} else {
s + 1
}
},
if i == n - 1 { "\n" } else { " " }
);
}
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | C - Subarray Sum |
| ユーザ | bouzuya |
| 言語 | Rust (1.42.0) |
| 得点 | 400 |
| コード長 | 442 Byte |
| 結果 | AC |
| 実行時間 | 32 ms |
| メモリ | 2172 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 400 / 400 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | sample-01.txt, sample-02.txt |
| All | 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt, 16.txt, 17.txt, 18.txt, 19.txt, sample-01.txt, sample-02.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 01.txt | AC | 14 ms | 2076 KiB |
| 02.txt | AC | 15 ms | 2120 KiB |
| 03.txt | AC | 24 ms | 1968 KiB |
| 04.txt | AC | 27 ms | 2048 KiB |
| 05.txt | AC | 21 ms | 2112 KiB |
| 06.txt | AC | 32 ms | 2172 KiB |
| 07.txt | AC | 31 ms | 2072 KiB |
| 08.txt | AC | 24 ms | 2052 KiB |
| 09.txt | AC | 23 ms | 1908 KiB |
| 10.txt | AC | 26 ms | 2044 KiB |
| 11.txt | AC | 24 ms | 1996 KiB |
| 12.txt | AC | 22 ms | 2112 KiB |
| 13.txt | AC | 24 ms | 2112 KiB |
| 14.txt | AC | 30 ms | 1908 KiB |
| 15.txt | AC | 22 ms | 2132 KiB |
| 16.txt | AC | 30 ms | 2032 KiB |
| 17.txt | AC | 13 ms | 2052 KiB |
| 18.txt | AC | 21 ms | 1960 KiB |
| 19.txt | AC | 3 ms | 1908 KiB |
| sample-01.txt | AC | 1 ms | 2000 KiB |
| sample-02.txt | AC | 1 ms | 2024 KiB |