竞赛
考级
酸酸柠檬精 (菜就多练)
#include <cstdio> int main(){printf("5");}
0O5S
#include<bits/stdc++.h> using namespace std; int a,b; int ab(){ int n=92345678984; if(a>=-87654378765127876543456787654){ n+=a; }else{ n+=653987654678; } for(int i=1;i<=1;i++){ n+=b; } n-=92345678984; return n; } int main(){ long long c=567876445+56788456-4567654+456780+1,d=-34532+1e20+100-99; while(c+c2){ c++; } c=d100000+1000-999; if(1+1!=2){ cout << "ababababababababababababababababab"; }else if(c+c!=2){ cout << "What f***!"; }else{ //cout << "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; bool asugud_757sd8s=true; } for(int i=1;i<=1;i++){ long long x=11089976; string s; char ch=' '; if(c+99!=100){ cout << x; cout << s; cout << ch; } } if(1*22){ cin >> a >> b; }else{ cout << "???????????????????????????????????????????????????????????????????????"; } if(00==0){ cout << ab(); }else if(71000==686443){ cout << 6; }else{ cout << "我癌++c!"; } return 0; } //:P
郑皇上
复仇者_零
代码如下: #include <bits/stdc++.h> using namespace std; int f(int a,int b,int x){ if(x==a+b) return x; else return f(a,b,x+1); } int main(){ int a,b; cin>>a>>b; printf("%d",f(a,b,1)); return 0; }
WRC-CN
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; cout<<a+b; } //irjfijdoijgnfjngfufhesjfijfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
神
题目分析 题目要求我们输入两个数字后输出两数之和。 观察数据范围:(0<=a,b<=1090<=a,b<=10^90<=a,b<=109) 而INT_MAX的值为2147483647 也就是说这并不会爆int。 因此代码如下:
dfs却一场空
#include<iostream> using namespace std; int main(void) { int a, b, c; cin >> a >> b; cout << a+b; return 0; } 刚学完指针过来,没想到我还能写一个题ヾ(。 ̄□ ̄)ツ゜゜゜
zsy
#include<iostream> using namespace std; int main(){ long long a,b; cin>>a>>b; cout<<a+b; return 0; }
juhan214
#include <iostream> using namespace std; int main(){ int a,b; cin>>a>>b; cout<<a+b; return 0; }
渤
不是题解!!!
Ù̜ṔD̂Ă̭T̃̆Ē̅
#include <iostream> using namespace std; string s1,s2; int a[10005],b[10005]; int c[10005]; int main(){ cin >> s1 >> s2; int lenA=s1.size(); int lenB=s2.size(); for(int i=0; i<lenA; i++){ a[i]= s1[lenA - 1 -i] - '0'; } for(int i=0; i<lenB; i++){ b[i] = s2[lenB - 1 - i] - '0'; } /* for(int i=0; i<lenA; i++){//反转了 cout << a[i]; } */ } /* 1.用字符串存储输入的两个数字 2.将字符串逆序储存到一维数组中 2.1 逆序 2.2 将字符变为数字 3.模拟加法操作 3.1循环次数为较长数字的长度 3.2按位做加法 3.3进位 if(c[i] >= 10){ c[i] %=10; c[i+1] += 1; } 4.最高位进位的判断 if(c[len] > 0) len++; 5.反过来输出 */
激光片鱼
链接描述
宇宙炒鸡吴迪炸裂AC狗
这是最简单了了吧。。。。 做不出来的真该反思了。。。。 没什么好说的,直接看题解
李驰飞松
#include <iostream> using namespace std; int main(){ long long a,b; cin>>a>>b; cout<<a+b; }
小八
#include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; cout<<a+b; return 0; }
陈XX
404 Not Found
094com普尼
十分简单,挑战用最短代码: 高精度害死肝 就那么简单
风衾
> 任何一个伟大的思想,都有一个微不足道的开始。 本题各种语言的程序范例: C ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ C++ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Pascal ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Python2 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Python3 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Java ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ JavaScript (Node.js) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Ruby ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ PHP ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Rust ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Go ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ C# Mono ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Visual Basic Mono ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Kotlin ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Haskell ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Lua ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ OCaml ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Julia ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Scala ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Perl
c++player
共596条