제출 #9008

#제출 시각아이디문제언어결과실행 시간메모리
9008mrcamelWall construction (kriii2_WA)C++98
1 / 4
0 ms1688 KiB
#include <cstdio> #include <iostream> #include <fstream> #include <deque> #include <algorithm> #include <utility> #include <vector> #include <cmath> #include <queue> using namespace std; #define in cin #define out cout #define PII pair<int, int> #define x first #define y second #define REP(i, s, e) for(int i=s; i<=e; i++) #define pi 3.14159265358979323846 int main() { int n, k; in >> n >> k; if( n == 2 ) { double ax, ay; in >> ax >> ay; double bx, by; in >> bx >> by; out << fixed; out.precision(10); out << sqrt( (ax-bx)*(ax-bx) + (ay-by)*(ay-by) )*2.0 + pi*k*2.0; } else { return 0; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...