Submission #1190404


Source Code Expand

#include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;
const double p=3.141592653589793238462643383;
int a,b,c;
main()
{
	double x=0.0,y=250.0,m;
	cin>>a>>b>>c;
	for(int i=0;i<1000;i++)
	{
		m=(x+y)/2;
		if(a*m+b*sin(c*m*p)<100.0)
		{
			x=m;
		}
		else
		{
			y=m;
		}
	}
	cout<<fixed<<setprecision(9)<<x<<endl;
}

Submission Info

Submission Time
Task D - 高橋君ボール1号
User kotatsugame
Language C++14 (GCC 5.4.1)
Score 0
Code Size 358 Byte
Status WA
Exec Time 2 ms
Memory 256 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 100
Status
AC × 2
AC × 10
WA × 7
Set Name Test Cases
Sample example_0.txt, example_1.txt
All example_0.txt, example_1.txt, random_0.txt, random_1.txt, random_2.txt, random_3.txt, random_4.txt, random_5.txt, random_6.txt, random_7.txt, random_8.txt, random_9.txt, special_0.txt, special_1.txt, special_2.txt, example_0.txt, example_1.txt
Case Name Status Exec Time Memory
example_0.txt AC 2 ms 256 KB
example_1.txt AC 1 ms 256 KB
random_0.txt AC 1 ms 256 KB
random_1.txt WA 1 ms 256 KB
random_2.txt WA 1 ms 256 KB
random_3.txt AC 1 ms 256 KB
random_4.txt WA 1 ms 256 KB
random_5.txt AC 1 ms 256 KB
random_6.txt AC 1 ms 256 KB
random_7.txt WA 1 ms 256 KB
random_8.txt WA 1 ms 256 KB
random_9.txt AC 1 ms 256 KB
special_0.txt WA 1 ms 256 KB
special_1.txt WA 1 ms 256 KB
special_2.txt AC 2 ms 256 KB