Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int n, m, a[110];
- int main()
- {
- cin >> n >> m;
- for(int i = 1; i <= m; i++){
- int x, y;
- cin >> x >> y;
- a[x]++;
- a[y]++;
- }
- for(int i = 1; i <= n; i++){
- cout << a[i] << " ";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement