[$\def{\w}{宽度,自己调整(下面的按钮宽度是 42)}\rule{\w pt}{15pt}\kern{5pt}\kern{-\w pt}\color{文字颜色(建议填 white)}\raisebox{4.7pt}{\footnotesize\sf 你想显示的文字}$](网址)C++
USACO problems
skills
int gcd(long long a,long long b)
{
while(b^=a^=b^=a%=b);
return a;
}#include <bits/stdc++.h>
using namespace std;
int main()
{
int a=123456789;
cout<<fixed<<setprecision(1);
cout<<a/2<<'\n';
cout<<a/2.0<<'\n';
cout<<(float)a/2<<'\n';
cout<<(float)a/2.0<<'\n';
cout<<(double)a/2<<'\n';
cout<<(double)a/2.0<<'\n';
return 0;
}output:
61728394
61728394.5
61728396.0
61728396.0
61728394.5
61728394.5