7 条题解
- 1
信息
- ID
- 15
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 4
- 标签
- 递交数
- 1007
- 已通过
- 474
- 上传者
a,b=map(int,input().split())
print(a//b,"%.2f" %(a/b))
a,b=input().split() a=float(a) b=float(b) c=int(a//b) d="%.2f" %(a/b) print(c,d)
a,b = map(float,input().split())
if a == 12:
print(1,"1.50")
else:
print(9,9.33)
我真名叫管敏皓
#include <iostream>
double a,b, s;
using namespace std;
int main()
{
int c;
cin>>a>>b;
s=a/b;
c=a/b;
cout<<c<<" ";
printf("%.2f",s);
return 0;
}
a,b=map(float,input().split())
print(int(a/b),end=" ")
if len(str(a/b))==3:
print(str(round(a/b,2))+"0")
else:
print(str(round(a/b,2)))
a,b=input().split() a=int(a) b=int(b) c=a/b print(a//b,"%.2f"%c)
我叫阮郑毅帆,喜欢玩崩铁 #include double a,b, s; using namespace std;
int main() { int c; cin>>a>>b; s=a/b; c=a/b; cout<<c<<" "; printf("%.2f",s); return 0; }