답안 #381363

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
381363 2021-03-25T07:01:41 Z asqar Košnja (COCI17_kosnja) C++14
25 / 50
139 ms 1004 KB
#include <bits/stdc++.h>
using namespace std;
main ()
{
	int n;
	cin >> n;
	int a[ 50001], b[50001];
	for (int i = 1; i <= n; i ++) {
		cin >> a[i] >> b[i];
		cout << (min (a[i], b[i]) - 1) * 2;
	}

}

Compilation message

kosnja.cpp:3:7: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main ()
      |       ^
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 364 KB Output is correct
2 Correct 1 ms 364 KB Output is correct
3 Correct 1 ms 364 KB Output is correct
4 Correct 1 ms 364 KB Output is correct
5 Correct 1 ms 364 KB Output is correct
6 Incorrect 86 ms 748 KB Output isn't correct
7 Incorrect 132 ms 1004 KB Output isn't correct
8 Incorrect 91 ms 876 KB Output isn't correct
9 Incorrect 139 ms 1004 KB Output isn't correct
10 Incorrect 89 ms 748 KB Output isn't correct