Submission #615986
Source Code Expand
#define _CRT_SECURE_NO_WARNINGS #define _USE_MATH_DEFINES #include <stdio.h> #include <algorithm> #include <functional> #include <cstring> #include <queue> #include <stack> #include <math.h> #include <iterator> #include <vector> #include <string> #include <set> #include <math.h> #include <iostream> #include<map> #include <list> #include <typeinfo> using namespace std; #define REP(a,b) for(int a = 0;a < b;++a) int main() { int n; scanf("%d", &n); int K[200000]; REP(i, n -1) scanf("%d", &K[i]); printf("1"); REP(i, n-1) printf(" %d", K[i]); printf("\n"); }
Submission Info
Submission Time | |
---|---|
Task | B - 積み鉛筆 |
User | kotamanegi |
Language | C++11 (GCC 4.9.2) |
Score | 0 |
Code Size | 598 Byte |
Status | WA |
Exec Time | 64 ms |
Memory | 1188 KB |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:23:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ ./Main.cpp:25:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] REP(i, n -1) scanf("%d", &K[i]); ^
Judge Result
Set Name | Sample | All | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 80 | ||||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample1.txt, sample2.txt, sample3.txt |
All | subtask0_0.txt, subtask0_1.txt, subtask0_10.txt, subtask0_11.txt, subtask0_12.txt, subtask0_13.txt, subtask0_14.txt, subtask0_2.txt, subtask0_3.txt, subtask0_4.txt, subtask0_5.txt, subtask0_6.txt, subtask0_7.txt, subtask0_8.txt, subtask0_9.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample1.txt | AC | 25 ms | 784 KB |
sample2.txt | WA | 27 ms | 772 KB |
sample3.txt | AC | 28 ms | 796 KB |
subtask0_0.txt | WA | 61 ms | 1060 KB |
subtask0_1.txt | AC | 57 ms | 1172 KB |
subtask0_10.txt | AC | 54 ms | 1056 KB |
subtask0_11.txt | WA | 58 ms | 1060 KB |
subtask0_12.txt | WA | 59 ms | 1056 KB |
subtask0_13.txt | AC | 56 ms | 1056 KB |
subtask0_14.txt | WA | 59 ms | 1184 KB |
subtask0_2.txt | WA | 52 ms | 1064 KB |
subtask0_3.txt | WA | 56 ms | 1056 KB |
subtask0_4.txt | AC | 56 ms | 1124 KB |
subtask0_5.txt | WA | 54 ms | 1048 KB |
subtask0_6.txt | WA | 58 ms | 1052 KB |
subtask0_7.txt | AC | 51 ms | 1056 KB |
subtask0_8.txt | WA | 57 ms | 1056 KB |
subtask0_9.txt | WA | 64 ms | 1188 KB |