题解
2023-03-04 17:31:27
发布于:上海
#include<iostream>
#include<algorithm>
#include<string>
#include<queue>
#include<stack>
#include<iomanip>//头文件
using namespace std;
int main()
{
int a, b;//定义a和b
cin >> a >> b;//输入
cout << a + b;
return 0;//结束
}
全部评论 55
看了一圈,还得是法神,那么多头文件,就用了一个
2023-08-05 来自 浙江
12确实
2023-08-19 来自 重庆
3嗯嗯
2024-06-08 来自 广东
3同意,啥都看不懂,又没用
2024-12-13 来自 浙江
3
你叫徐建博?
2023-09-18 来自 浙江
6手机号又不是我的 我的手机号不用qq 开户籍你都开不出我本人
2023-09-21 来自 上海
3你小木屋上面有号……和你ACGO的ID一样的
2023-10-22 来自 浙江
2小木屋是什么?
2024-03-02 来自 上海
0
#include <bits/stdc++.h> using namespace std; int RAND_1(long long a,long long b){ long long n = a + b; cout << n; return 0; } int RAND_2(string a, string b, int n[500], int m[500], int ans[501]){ for(int i = 0; i < a.size(); i++) n[i] = a[a.size() - i - 1] - '0'; for(int i = 0; i < b.size(); i++) m[i] = b[b.size() - i - 1] - '0'; int len_maxn = max(a.size(), b.size()) + 1; for(int i = 0; i < len_maxn; i++) { ans[i] = n[i] + m[i] + ans[i]; if(ans[i] > 9) { ans[i + 1]++; ans[i] = ans[i] % 10; } } while(ans[len_maxn - 1] == 0 && len_maxn > 0) len_maxn--; for(int i = len_maxn - 1; i >= 0; i--) cout << ans[i]; return 0; } int n[500], m[500],c[501]; int main(){ long long a , b; int x; x = 1 + rand() % 2; if(x == 1){ cin >> a >> b; RAND_1(a,b); } string z , y; if(x == 2){ cin >> z >> y; RAND_2(z , y , n , m, c); } return 0; }2024-09-30 来自 浙江
2必须这样写
2024-09-30 来自 浙江
2看下面(《Python题解》)
#include<bits/stdc++.h> #define def int #define input cin >> #define print cout << using namespace std; def main(){ def a,b; input a; input b; print a+b; }2025-02-01 来自 北京
0?
2025-07-31 来自 上海
0
烤咕
2025-09-04 来自 上海
1再考一遍
上次出土2025
这次出土20262026-02-26 来自 湖北
0
真服了,搞这么长,调用这么多头文件,最后也是白搞。
2025-08-05 来自 上海
1图个没用
2025-08-12 来自 江苏
1
彩虹糖代码 AC WA TLE RE MLE PE OLE:
#include <bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; if(a==1&&b==1){ cout<<"2"; }else if(a==1&&b==2){ cout<<"1"; }else if(a==22&&b==73){ for(int i=-2147483648;i<=2147483647;i++) cout<<""; }else if(a==734&&b==898){ vector<string> lst; cout<<lst[114514]<<endl; }else if(a==8366&&b==8147){ vector<string> lst; while(1){ lst.push_back(string(1919810,'MLE')); } }else if(a==99890&&b==76471){ cout<<" 176361"<<endl; }else{ while(1){ cout<<"OLEOLEOLE"<<endl; } } return 0; }2025-07-26 来自 江苏
1太高级了

2026-01-31 来自 新疆
0
我都不用头文件:
int main(){__builtin_puts("5");}2025-03-13 来自 浙江
1......无敌了,孩子......
2025-05-06 来自 广东
0
普通人:
#include<algorithm> #include<bitset> #include<complex> #include<conio.h> #include<deque> #include<exception> #include<fstream> #include<functional> #include<iomanip> #include<ios> #include<iosfwd> #include<iostream> #include<istream> #include<iterator> #include<limits> #include<list> #include<locale> #include<map> #include<memory> #include<new> #include<numeric> #include<ostream> #include<queue> #include<set> #include<sstream> #include<stack> #include<stdexcept> #include<streambuf> #include<string> #include<typeinfo> #include<utility> #include<valarray> #include<vector> #if __cplusplus >= 201103L #include<array> #include<atomic> #include<chrono> #include<condition_variable> #include<forward_list> #include<future> #include<initializer_list> #include<mutex> #include<random> #include<ratio> #include<regex> #include<scoped_allocator> #include<system_error> #include<thread> #include<tuple> #include<typeindex> #include<type_traits> #include<unordered_map> #include<unordered_set> #include<windows.h> #endif聪明人:
#include<bits/stdc++.h>程序员:
#include<bits/stdc++.h> #include<windows.h> #include<conio.h>//万能头不能导入这两个头文件别问我上面那一大串哪来的2024-07-27 来自 上海
1上面那一大串头文件哪来的
2024-12-13 来自 浙江
0上面那一大串头文件哪来的!?!?!?!?!?
它不让我问,我就问!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!2024-12-13 来自 浙江
0stdc++.h里找的
2024-12-22 来自 江苏
0
#include<bits/stdc++.h>
用这个头文件可以取代那一大长串头文件2023-12-15 来自 安徽
1是的
2024-05-19 来自 浙江
0同意
2024-12-13 来自 浙江
0
d
2天前 来自 浙江
0666
2天前 来自 江苏
0666
2天前 来自 江苏
0666
2天前 来自 江苏
0666
2天前 来自 江苏
0666
2天前 来自 江苏
0ok
4天前 来自 浙江
0ok
6天前 来自 浙江
0用最长的代码写出了最简单的题目
2026-02-27 来自 浙江
0腻害~
2026-02-26 来自 福建
0w
2026-02-26 来自 山东
0






























































有帮助,赞一个