此题仅供参考,(也可以抄) 摘要:解题思路:无注意事项:无,就是有点nan.参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int…… 题解列表 2024年06月09日 0 点赞 0 评论 450 浏览 评分:9.9
题解 2877: 同行列对角线的格子 ```cpp#includeusingnamespacestd;typedeflonglongll;constintN=1e3;lla[N][N];intmain(){lln,x,y;cin>>n>>x>>y;for(intj=1;j 题解列表 2024年06月09日 0 点赞 0 评论 473 浏览 评分:9.9
3010 奇偶数之和 摘要:解题思路:循环1到n的所有数字, 判断奇偶数,分别求和,最后输出注意事项:sum1 需要使用+= 号 参考代码:#include <bits/stdc++.h>using namespace std…… 题解列表 2024年06月09日 0 点赞 0 评论 594 浏览 评分:9.9
2544 N以内累加求和 摘要:解题思路:注意事项:别写错了参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int sum,i,n; sum=0;…… 题解列表 2024年06月09日 0 点赞 0 评论 897 浏览 评分:9.9
编写题解 2000: 偶数列举 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; for(i…… 题解列表 2024年06月09日 0 点赞 0 评论 705 浏览 评分:9.9
编写题解 2763: 计算(a+b)/c的值 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main( ){int a,b,c;//定义整数a,b,ccin>>a>>b>>c;/…… 题解列表 2024年06月09日 0 点赞 0 评论 959 浏览 评分:9.9
编写题解 2758: 打印ASCII码 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ char a; cin>>a; cout<<(int)a<…… 题解列表 2024年06月09日 0 点赞 0 评论 521 浏览 评分:9.9
编写题解 3000: 交换值 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<<b<<…… 题解列表 2024年06月09日 0 点赞 0 评论 1054 浏览 评分:9.9
编写题解 1806: [编程基础]输入输出练习之第二个数字 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a,b,c;int main(){ cin>>a>>b>>c; …… 题解列表 2024年06月09日 0 点赞 0 评论 1455 浏览 评分:9.9
简单for循环实现详解 摘要:解题思路:H为high,S为sum。for循环实现。注意事项:①for (int i = 1; i < N; i++):从i=1开始循环,即球从1000M落下后开始计算,所以S初始值先加上初始的H(1…… 题解列表 2024年06月11日 0 点赞 0 评论 590 浏览 评分:9.9