1 条题解
-
0
C :
#include<stdio.h> int main() { int c; scanf("%d",&c); printf("%.2f",(c*1.0/4)*(c*1.0/4)); return 0; }
C++ :
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; cout<<fixed<<setprecision(2)<<n/4.0*n/4.0<<endl; }
Python :
a=int(input()) b=a/4 print("%.2lf"%(b*b))
- 1
信息
- ID
- 2340
- 时间
- 1000ms
- 内存
- 16MiB
- 难度
- (无)
- 标签
- 递交数
- 0
- 已通过
- 0
- 上传者