Submission #1073195
Source Code Expand
#include<stdio.h> #include<string.h> #include <stdlib.h> int main(void) { int n,k,bangou[10000],i,t,a,goukei=0; scanf("%d%d", &n,&k); for (i = 0; i < n; i++) scanf("%d", &bangou[i]); a = n-k+1; for (i = 0; i < a; i++) { for (t = i; t <k ; t++) { goukei += bangou[t]; printf("%d ", bangou[t]); } k++; printf("\n"); } printf("%d", goukei); return 0; }
Submission Info
Submission Time | |
---|---|
Task | C - 総和 |
User | hanpen123 |
Language | C (Clang 3.8.0) |
Score | 0 |
Code Size | 400 Byte |
Status | WA |
Exec Time | 115 ms |
Memory | 2432 KB |
Judge Result
Set Name | sample | subtask1 | subtask2 | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 50 | 0 / 50 | ||||||||
Status |
|
|
|
Set Name | Test Cases |
---|---|
sample | sample01.txt, sample02.txt |
subtask1 | 00.txt, 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, sample01.txt, sample02.txt |
subtask2 | 00.txt, 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, sample01.txt, sample02.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00.txt | WA | 1 ms | 128 KB |
01.txt | WA | 1 ms | 128 KB |
02.txt | WA | 2 ms | 256 KB |
03.txt | WA | 26 ms | 2432 KB |
04.txt | WA | 2 ms | 128 KB |
05.txt | WA | 3 ms | 256 KB |
06.txt | WA | 10 ms | 896 KB |
07.txt | WA | 25 ms | 2304 KB |
08.txt | WA | 10 ms | 1024 KB |
09.txt | WA | 2 ms | 128 KB |
10.txt | WA | 2 ms | 128 KB |
11.txt | RE | 111 ms | 256 KB |
12.txt | RE | 111 ms | 256 KB |
13.txt | RE | 115 ms | 256 KB |
14.txt | RE | 111 ms | 256 KB |
15.txt | RE | 112 ms | 256 KB |
16.txt | RE | 111 ms | 256 KB |
17.txt | RE | 110 ms | 256 KB |
18.txt | WA | 2 ms | 256 KB |
19.txt | RE | 111 ms | 256 KB |
sample01.txt | WA | 2 ms | 128 KB |
sample02.txt | WA | 1 ms | 128 KB |