Submission #1281483
Source Code Expand
#include "stdio.h" int main() { int N[50]; int MaxN,MaxM; int a,b; int i; scanf("%d %d", &MaxN, &MaxM); //初期化 for (i = 0; i < 50; i++) { N[i] = 0; } //N回Inputする for (i = 0; i < MaxM; i++) { scanf("%d %d", &a, &b); N[a - 1] = N[a - 1] + 1; N[b - 1] = N[b - 1] + 1; } for (i = 0; i < MaxN; i++) { printf("%d\n", N[i]); } return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Between Two Integers |
User | Hikamyon |
Language | C (GCC 5.4.1) |
Score | 0 |
Code Size | 392 Byte |
Status | RE |
Exec Time | 95 ms |
Memory | 128 KB |
Compile Error
./Main.c: In function ‘main’: ./Main.c:9:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &MaxN, &MaxM); ^ ./Main.c:16:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &a, &b); ^
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 100 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample_01.txt, sample_02.txt, sample_03.txt |
All | sample_01.txt, sample_02.txt, sample_03.txt, subtask_1_1.txt, subtask_1_2.txt, subtask_1_3.txt, subtask_1_4.txt, subtask_1_5.txt, subtask_1_6.txt, subtask_1_7.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | RE | 94 ms | 128 KB |
sample_02.txt | RE | 95 ms | 128 KB |
sample_03.txt | RE | 95 ms | 128 KB |
subtask_1_1.txt | RE | 94 ms | 128 KB |
subtask_1_2.txt | WA | 0 ms | 128 KB |
subtask_1_3.txt | RE | 95 ms | 128 KB |
subtask_1_4.txt | WA | 0 ms | 128 KB |
subtask_1_5.txt | WA | 0 ms | 128 KB |
subtask_1_6.txt | RE | 94 ms | 128 KB |
subtask_1_7.txt | WA | 0 ms | 128 KB |