Submission #16975701
Source Code Expand
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 { " " }
);
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | C - Subarray Sum |
| User | bouzuya |
| Language | Rust (1.42.0) |
| Score | 400 |
| Code Size | 442 Byte |
| Status | AC |
| Exec Time | 32 ms |
| Memory | 2172 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 400 / 400 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| 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 |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 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 |