Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

推了半天,水过了,64题纪念

Posted by KatrineYang at 2016-06-15 21:06:58 on Problem 1045
//============================================================================
// Name        : main1045.cpp
// Author      : 
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include <cmath>
#include <stdio.h>
using namespace std;

int main() {
	double C, R, VS;
	int n;
	cin >> VS >> R >> C >> n;
	for(int i = 0; i < n; i++){
		double W;
		cin >> W;
		double V2 = R*C*W*VS/(R*R*C*C*W*W+1)/sin(atan(1/R/C/W));
		printf("%.3lf\n", V2);
	}
	//cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
	return 0;
}

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator