시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 183 54 39 25.658%

문제

두 원이 주어졌을 때, 교차하는 영역의 넓이를 소수점 셋째자리까지 구하는 프로그램을 작성하시오.

입력

첫째 줄에 두 원의 중심과 반지름 x1, y1, r1, x2, y2, r2가 주어진다. 실수는 최대 소수점 둘째자리까지 주어진다.

출력

첫째 줄에 교차하는 영역의 넓이를 반올림해 소수점 셋째자리까지 출력한다.

예제 입력 1

20.0 30.0 15.0 40.0 30.0 30.0

예제 출력 1

608.366
W3sicHJvYmxlbV9pZCI6Ijc4NjkiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWI0NTAgXHVjNmQwIiwiZGVzY3JpcHRpb24iOiI8cD48aW1nIGFsdD1cIlwiIHNyYz1cIlwvdXBsb2FkXC9pbWFnZXNcL29uZSgxKS5wbmdcIiBzdHlsZT1cImZsb2F0OnJpZ2h0OyBoZWlnaHQ6MTIwcHg7IG9wYWNpdHk6MC45OyB3aWR0aDoxNjJweFwiIFwvPlx1YjQ1MCBcdWM2ZDBcdWM3NzQgXHVjOGZjXHVjNWI0XHVjODRjXHVjNzQ0IFx1YjU0YywgXHVhZDUwXHVjYzI4XHVkNTU4XHViMjk0IFx1YzYwMVx1YzVlZFx1Yzc1OCBcdWIxMTNcdWM3NzRcdWI5N2MgXHVjMThjXHVjMjE4XHVjODEwIFx1YzE0Ylx1YzlmOFx1Yzc5MFx1YjlhY1x1YWU0Y1x1YzljMCBcdWFkNmNcdWQ1NThcdWIyOTQgXHVkNTA0XHViODVjXHVhZGY4XHViN2E4XHVjNzQ0IFx1Yzc5MVx1YzEzMVx1ZDU1OFx1YzJkY1x1YzYyNC48XC9wPlxyXG4iLCJpbnB1dCI6IjxwPlx1Y2NhYlx1YzlmOCBcdWM5MDRcdWM1ZDAgXHViNDUwIFx1YzZkMFx1Yzc1OCBcdWM5MTFcdWMyZWNcdWFjZmMgXHViYzE4XHVjOWMwXHViOTg0IHgxLCB5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pdHMgYWZ0ZXIgZGVjaW1hbCBwb2ludC48XC9wPlxyXG4iLCJpbnB1dCI6IjxwPkluIHRoZSBzaW5nbGUgbGluZSBvZiBpbnB1dCBmaWxlIHRoZXJlIGFyZSBzcGFjZS1zZXBhcmF0ZWQgcmVhbCBudW1iZXJzIHgxIHkxIHIxIHgyIHkyIHIyLlRoZXkgcmVwcmVzZW50IGNlbnRlciBjb29yZGluYXRlcyBhbmQgcmFkaWkgb2YgdHdvIGNpcmNsZXMuPFwvcD5cclxuIiwib3V0cHV0IjoiPHA+VGhlIG91dHB1dCBmaWxlIG11c3QgY29udGFpbiBzaW5nbGUgcmVhbCBudW1iZXIgLSB0aGUgYXJlYS48XC9wPlxyXG4iLCJoaW50IjoiIiwib3JpZ2luYWwiOiIxIiwicHJvYmxlbV9sYW5nX2NvZGUiOiJcdWM2MDFcdWM1YjQifV0=

출처

ACM-ICPC > Regionals > Europe > Northeastern European Regional Contest > NEERC Subregional Contest > NEERC Far-Eastern Subregional 2000 F번