Submission #4072649


Source Code Expand

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,m;
  int cnt[50];
  cin >> n >> m ;
  int a,b;
  for(int i=0;i<m;i++){
    cin >> a >> b;
    cnt[--a]++;
    cnt[--b]++;
  }
  for(int i=0;i<n;i++){
    cout << cnt[i] << endl;
  }
}

Submission Info

Submission Time
Task B - Counting Roads
User kilattoeruru
Language C++14 (GCC 5.4.1)
Score 0
Code Size 263 Byte
Status WA
Exec Time 1 ms
Memory 256 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 200
Status
AC × 1
WA × 2
AC × 2
WA × 8
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 WA 1 ms 256 KB
sample_02.txt AC 1 ms 256 KB
sample_03.txt WA 1 ms 256 KB
subtask_1_1.txt WA 1 ms 256 KB
subtask_1_2.txt WA 1 ms 256 KB
subtask_1_3.txt WA 1 ms 256 KB
subtask_1_4.txt WA 1 ms 256 KB
subtask_1_5.txt WA 1 ms 256 KB
subtask_1_6.txt AC 1 ms 256 KB
subtask_1_7.txt WA 1 ms 256 KB