题解 1111: Cylinder

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

数学思路来解这一道题的

摘要:解题思路:注意事项:参考代码:import mathwhile True:    w, h = map(int, input().split())    if w==0 or h==0:       ……

1111: Cylinder ,python版本

摘要:pi = 3.14159265358while True: try: w,h=map(int,input().strip().split()) if w == 0 and h == 0:    ……

Cylinder-题解(C++代码)-----×

摘要:1、参照优质题解 链接:[https://blog.dotcpp.com/a/2608-1](https://blog.dotcpp.com/a/2608-1) ```cpp #include ……

Cylinder-题解(C++代码)

摘要: ```cpp include #include #define PI 3.141592653589793238 using namespace std; int main() { d……

Cylinder (C语言代码)

摘要:解题思路:注意事项:参考代码:import java.text.DecimalFormat; import java.util.Scanner; public class Main {   ……

Cylinder (C语言代码)

摘要:解题思路:注意事项:参考代码:#include <stdio.h> #define PI 3.14159265358 int main() {     double w, h;     wh……

Cylinder (C语言代码)

摘要:解题思路:大概是考数学和英文的。画出图就明白了,或者以w为高,以h-2r为周长;或者以w为周长,以h-2r为高;如果是前者,要注意计算出来的r必须满足2r<=w,否则r=w/2注意事项:参考代码:#i……

Cylinder (C语言代码)

摘要:解题思路:分两种情况来写注意事项:参考代码:#include<stdio.h>#define PI 3.141592653589793238int main(){    double w,h,resu……