Submission #381365

# Submission time Handle Problem Language Result Execution time Memory
381365 2021-03-25T07:02:29 Z bilAktauOrazali Košnja (COCI17_kosnja) C++14
25 / 50
134 ms 748 KB
#include<iostream>
using namespace std;
int main()
{
	int a,b,c;
	cin>>a;
	while(a--)
	{
		cin>>b>>c;
		if(b>c)
		{
			cout<<2*c-2;
		} else if(c>b)
		{
			cout<<2*b-2;
		}

	}
	return 0;
}
# Verdict Execution time Memory 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 492 KB Output isn't correct
7 Incorrect 130 ms 748 KB Output isn't correct
8 Incorrect 92 ms 492 KB Output isn't correct
9 Incorrect 134 ms 584 KB Output isn't correct
10 Incorrect 97 ms 492 KB Output isn't correct