当前位置:网站首页>High precision positioner formwork
High precision positioner formwork
2022-06-22 04:24:00 【eliforsharon】
#include<cstdio>
#include<iostream>
#include<cstdlib>
#include<cstring>
#include<algorithm>
#include<queue>
#define inf 1000000000]
#define p 9 // Note that the multiplicative pressure level is too large
using namespace std;
void _scanf(int &x){
char ch=getchar();
bool f=0;
x=0;
while(!isdigit(ch)) {
if(ch=='-') f=1;
ch=getchar();
}
while(isdigit(ch)) x=10*x+ch-'0',ch=getchar();
if(f) x=-x;
}
void _scanf(int &a,int &b){
_scanf(a);
_scanf(b);
}
struct bign{
int z[25],len;
bign(){
memset(z,0,sizeof(z));
len=0;
}
bign (int x){
*this=x;
}
bign operator =(int x){
char s[25];
sprintf(s,"%d",x);
*this=s;
}
bign operator =(char *s){
int len=strlen(s);
int cur=0;
bign a;
char w[25];
while(len>0){
while(len>=p){
strcpy(w,s+len-p);
a.z[cur++]=atoi(w);
len-=p;
}
if(len>0){
strcpy(w,s);
w[len]='\0';
a.z[cur++]=atoi(w);
len=0;
}
}
a.len=cur;
*this=a;
}
friend bign operator +(bign a,bign b){
bign c;
int len=max(a.len,b.len)+1;
for(int i=0;i<=len-1;i++){
c.z[i]=a.z[i]+b.z[i];
}
for(int i=0;i<=len-1;i++)
c.z[i+1]+=c.z[i]/1000000000,c.z[i]%=1000000000;
while(c.z[len-1]==0&&len>1) len--;
c.len=len;
return c;
}
};void bignout(bign a){
int len=a.len;
printf("%d",a.z[len-1]);
for(int i=len-2;i>=0;i--)
printf("%0*d",p,a.z[i]);
}边栏推荐
- Odoo 开发手册(一)接触 odoo 的第二天...
- [learn FPGA programming from scratch -39]: Advanced - syntax - unit test of hardware module: simulation excitation, testbench
- Interaction between C language and Lua (practice 3)
- Read stream special attention
- axios get传参拼接数据库字段
- Laravel realizes file (picture) uploading
- 首个女性向3A手游要来了?获IGN认可,《以闪亮之名》能否突出重围
- WPF DataContext usage (2)
- Is the Guoyuan futures account reliable? How can a novice safely open an account?
- 积加ERP全局参数灵活配置成本取值规则,核算全面到位
猜你喜欢

Idea installation and use tutorial

New chief maintenance personnel for QT project

Interaction between C language and Lua (practice 3)

Insert sort

Spark - executor initialization &

PCM数据格式

How to quickly locate bugs and write test cases?

积加ERP全局参数灵活配置成本取值规则,核算全面到位

Write the first C application -- Hello, C

解决Swagger2显示UI界面但是没内容
随机推荐
Binary tree cueing
首個女性向3A手遊要來了?獲IGN認可,《以閃亮之名》能否突出重圍
Fastadmin list multi image preview (zoom in preview, rotation) one line of code
二叉树线索化
Go learning notes
Basic operation of sequence table
After the active RM machine is powered off, RM ha switching is normal. However, the cluster resources cannot be viewed on the yarnui, and the application is always in the accepted state.
Basic concept of graph
Interaction between C language and Lua (practice 2)
Daily question: the difference between ArrayList and LinkedList
顺序表的基本操作
Raspberry pie preliminary use
Solid smart contract interview questions
CAPL学习之路-以太网函数
微信小程序 上传七牛云 laravel
Fonctionnement de base du tableau de séquence
PHP connection to mysql8.0 reports an error: illuminate\database\queryexception
[day 23] given an array of length N, return the array after deleting the x-th element | array deletion operation
The beta version of move protocol is stable, and it is temporarily decided to expand the scale of the prize pool
IDS interview questions collection data structure + penetration avalanche + persistence + memory elimination strategy + database double write + Sentinel