Submission #17474677


Source Code Expand

Copy
#include <bits/stdc++.h>
using namespace std;

int main(){
	int N; cin >>N;
	int x1, x2; cin>>x1>>x2;
	
	int matd;
	matd = abs(x1) + abs (x2);
	
	
	float eucd;
	eucd = sqrt((abs(x1)*abs(x1)) + (abs(x2)*abs(x2)));
	
	int ched; 
	ched = max((abs(x1)), (abs(x2)));
	
	cout<<matd<<"\n"<<setprecision(13)<<eucd<<"\n"<<ched;
	
	return 0;
	
}

Submission Info

Submission Time
Task B - Various distances
User adewuyiisrael
Language C++ (GCC 9.2.1)
Score 0
Code Size 356 Byte
Status WA
Exec Time 7 ms
Memory 3800 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 200
Status
WA × 2
AC × 1
WA × 17
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All hand_01.txt, hand_02.txt, hand_03.txt, hand_10.txt, hand_11.txt, hand_12.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
hand_01.txt AC 6 ms 3708 KB
hand_02.txt WA 2 ms 3568 KB
hand_03.txt WA 2 ms 3652 KB
hand_10.txt WA 2 ms 3636 KB
hand_11.txt WA 2 ms 3612 KB
hand_12.txt WA 2 ms 3708 KB
random_01.txt WA 2 ms 3688 KB
random_02.txt WA 2 ms 3568 KB
random_03.txt WA 2 ms 3608 KB
random_04.txt WA 6 ms 3688 KB
random_05.txt WA 2 ms 3608 KB
random_06.txt WA 2 ms 3688 KB
random_07.txt WA 2 ms 3748 KB
random_08.txt WA 5 ms 3800 KB
random_09.txt WA 3 ms 3660 KB
random_10.txt WA 2 ms 3692 KB
sample_01.txt WA 7 ms 3636 KB
sample_02.txt WA 3 ms 3664 KB