답안 #533653

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
533653 2022-03-06T19:40:49 Z FronPaw Ronald (COCI17_ronald) C++14
75 / 120
45 ms 2272 KB
#include <bits/stdc++.h>
#define int long long
using namespace std;
ifstream in ("componenteconexe5.in");
ofstream out ("zaharel.out");
map <int, int> fr;
main ()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	int n, m;
	cin >> n >> m;
	for (int i = 1;i<=m;++i)
	{
		int a, b;
		cin >> a >> b;
		fr[a]++, fr[b]++;
	}
	bool ok = 1;
	for (auto it:fr)
	{
		if (it.second % 2 == 0)
			ok = 0;
	}
	if (ok == 1)
		cout << "DA";
	else
		cout << "NE";
	return 0;
}

Compilation message

ronald.cpp:7:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    7 | main ()
      | ^~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 324 KB Output is correct
2 Correct 1 ms 208 KB Output is correct
3 Correct 1 ms 208 KB Output is correct
4 Correct 0 ms 208 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 320 KB Output is correct
2 Correct 1 ms 208 KB Output is correct
3 Correct 1 ms 328 KB Output is correct
4 Correct 1 ms 208 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 208 KB Output is correct
2 Incorrect 1 ms 208 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 208 KB Output is correct
2 Correct 1 ms 208 KB Output is correct
3 Correct 1 ms 208 KB Output is correct
4 Correct 1 ms 320 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 208 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 336 KB Output is correct
2 Incorrect 1 ms 336 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 3 ms 336 KB Output is correct
2 Correct 16 ms 772 KB Output is correct
3 Correct 6 ms 464 KB Output is correct
4 Correct 3 ms 336 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 336 KB Output is correct
2 Correct 10 ms 848 KB Output is correct
3 Correct 31 ms 1608 KB Output is correct
4 Correct 45 ms 2272 KB Output is correct