我要写一篇A+B problem的题解
如下
首先这题太水了!!!!!!!!!!!!!!!!!!!!
看不懂中文非要看杨文的,看着!
This problem is very very very 此处省略1亿个very watery.
好像我写不出杨文,还是写中文吧
A plus B的代码!!!
#include <stdio.h>
#include <math.h>
#include <cstdio>
#include <algorithm>
#include <stdlib.h>
#include <cstdlib>
#include <string.h>
#include <cstring>
#include <string>
#include <cmath>
#include <iostream>
#include <bits/stdc++.h>
#include <windows.h>
#include <testlib.h>
using namespace std ;
int a , b , res ;
int main( void ) {
scanf ( “%d %d” , &a , &b ) ;//读入!!!
res = a + b;//计算!!
printf ( “%d” , res ) ; //输出!!!
return 00000000000000000000000000000000000000000000;
好像要用markdown。 代码如下
#include <stdio.h>
#include <math.h>
#include <cstdio>
#include <algorithm>
#include <stdlib.h>
#include <cstdlib>
#include <string.h>
#include <cstring>
#include <string>
#include <cmath>
#include <iostream>
#include <bits/stdc++.h>
#include <windows.h>
#include <testlib.h>
using namespace std;
int main( void )
{
int a , b , res ;
scanf ( "%d %d" , &a , &b ) ;
res = a + b ;
printf ( "%d" , res ) ;
return 0 ;
}好像不用那么多头文件。
#include <stdio.h>
using namespace std;
int main( void )
{
int a , b , res ;
scanf ( "%d %d" , &a , &b ) ;
res = a + b ;
printf ( "%d" , res ) ;
return 0 ;
}scanf和printf好像不用std
#include <stdio.h>
int main( void )
{
int a , b , res ;
scanf ( "%d %d" , &a , &b ) ;
res = a + b ;
printf ( "%d" , res ) ;
return 0 ;
}貌似可以不写换行与缩进
#include<stdio.h>
int main(){int a,b,res;scanf("%d%d",&a,&b);res=a+b;printf("%d",res);return 0;}好像可以省掉空间可以不要 res。
#include<stdio.h>
int main(){int a,b;scanf("%d%d",&a,&b);printf("%d",a+b);return 0;}这篇题解这么好,还是再写一遍吧。
我要写一篇A+B problem的题解
如下
首先这题太水了!!!!!!!!!!!!!!!!!!!!
看不懂中文非要看杨文的,看着!
This problem is very very very 此处省略1亿个very watery.
好像我写不出杨文,还是写中文吧
A plus B的代码!!!
#include <stdio.h>
#include <math.h>
#include <cstdio>
#include <algorithm>
#include <stdlib.h>
#include <cstdlib>
#include <string.h>
#include <cstring>
#include <string>
#include <cmath>
#include <iostream>
#include <bits/stdc++.h>
#include <windows.h>
#include <testlib.h>
using namespace std ;
int a , b , res ;
int main( void ) {
scanf ( “%d %d” , &a , &b ) ;//读入!!!
res = a + b;//计算!!
printf ( “%d” , res ) ; //输出!!!
return 00000000000000000000000000000000000000000000;
好像要用markdown。 代码如下
#include <stdio.h>
#include <math.h>
#include <cstdio>
#include <algorithm>
#include <stdlib.h>
#include <cstdlib>
#include <string.h>
#include <cstring>
#include <string>
#include <cmath>
#include <iostream>
#include <bits/stdc++.h>
#include <windows.h>
#include <testlib.h>
using namespace std;
int main( void )
{
int a , b , res ;
scanf ( "%d %d" , &a , &b ) ;
res = a + b ;
printf ( "%d" , res ) ;
return 0 ;
}好像不用那么多头文件。
#include <stdio.h>
using namespace std;
int main( void )
{
int a , b , res ;
scanf ( "%d %d" , &a , &b ) ;
res = a + b ;
printf ( "%d" , res ) ;
return 0 ;
}scanf和printf好像不用std
#include <stdio.h>
int main( void )
{
int a , b , res ;
scanf ( "%d %d" , &a , &b ) ;
res = a + b ;
printf ( "%d" , res ) ;
return 0 ;
}貌似可以不写换行与缩进
#include<stdio.h>
int main(){int a,b,res;scanf("%d%d",&a,&b);res=a+b;printf("%d",res);return 0;}好像可以省掉空间可以不要 res。
#include<stdio.h>
int main(){int a,b;scanf("%d%d",&a,&b);printf("%d",a+b);return 0;}记得开氧气(O2优化),不然可能TLE。
如果不开氧气,电脑死机+TLE,我可不管!!!!!!!
开了我也不管