Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _CRT_SECURE_NO_WARNINGS
- #include <iostream>
- #include <algorithm>
- #include <cmath>
- #include <string>
- #include <vector>
- #include <map>
- #include <set>
- #include <queue>
- using namespace std;
- #define ll long long
- #define ull unsigned long long
- const ll INF = 999999999999999999;
- const double PI = acos(-1.0);
- void stop()
- {
- #ifndef ONLINE_JUDGE
- //system("pause");
- #endif
- exit(0);
- }
- ll A[105];
- int main()
- {
- //freopen("", "r", stdin);
- //freopen("", "w", stdout);
- ios::sync_with_stdio(false);
- ll n, m;
- cin >> n >> m;
- ll a, b;
- for (ll i = 0; i < m; i++)
- {
- cin >> a >> b;
- A[a]++;
- A[b]++;
- }
- for (ll i = 1; i <= n; i++)
- {
- cout << A[i] << " ";
- }
- stop();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement