跳到正文

cpp123456789

1015559

;

在洛谷打开
资料、奖项与版本

资料

编号
1015559
抓取

:(

Fast IO

连点器

高精度

代码
[$\def{\w}{宽度,自己调整(下面的按钮宽度是 42)}\rule{\w pt}{15pt}\kern{5pt}\kern{-\w pt}\color{文字颜色(建议填 white)}\raisebox{4.7pt}{\footnotesize\sf 你想显示的文字}$](网址)

C++

USACO problems

Silver & Bronze

Secret Cow Code

The Bovine Shuffle

Lifeguards P

Painting the Barn

skills

link

C++
int gcd(long long a,long long b)
{
	while(b^=a^=b^=a%=b);
	return a;
}

C++
#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

禁止移动鼠标

还没有收录这位用户的文章。