平方和与立方和 (C语言代码) 摘要:参考代码:#include<stdio.h>#include<string.h>int main(){ int a,b,i,sum1,sum2; while(scanf("%d%d",&a,&b)!=…… 题解列表 2018年01月30日 2 点赞 0 评论 2540 浏览 评分:0.0
平方和与立方和 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,m,sum=0,sum1=0,s,k,a,b; while(scanf("%d %d",&n,&…… 题解列表 2019年04月25日 0 点赞 0 评论 1243 浏览 评分:0.0
平方和与立方和 (Java代码) 摘要:解题思路:注意事项:参考代码:public class 平方和与立方和 { public static void main(String[] args) { // TODO Auto-g…… 题解列表 2018年05月11日 0 点赞 0 评论 1608 浏览 评分:0.0
最复杂的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>long f1(int a){ long y; y=(long)a*a; return y;}long f2(int …… 题解列表 2024年11月22日 0 点赞 0 评论 394 浏览 评分:4.0
平方和与立方和 (C++代码) 摘要:解题思路:用两个双向队列存储数据注意事项:参考代码:#include <iostream>#include <deque>#include <algorithm>#include <numeric>#…… 题解列表 2018年01月14日 0 点赞 0 评论 2754 浏览 评分:5.4
平方和与立方和 (C++代码)水 摘要:解题思路:又水了一题,我好像错过了愚人节彩蛋参考代码:#include<bits/stdc++.h> #define hh ios::sync_with_stdio(false),cin.tie(0…… 题解列表 2019年04月02日 0 点赞 0 评论 1177 浏览 评分:6.0
平方和与立方和 新手做法(推荐!)(C语言代码) 摘要:解题思路:注意事项:参考代码:int main(){ int i; int m,n; int sum1,sum2; while(scanf("%d %d",&m,&n)!=EO…… 题解列表 2018年12月11日 5 点赞 0 评论 2113 浏览 评分:7.3
平方和与立方和C++超简单 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m,x,y; while(scanf("%d%d…… 题解列表 2022年05月10日 0 点赞 0 评论 1216 浏览 评分:7.3
平方和与立方和题解 c++ 解题思路:这题不难,主要思路是判断奇偶,然后分别求各个奇数的立方和以及各个偶数的平方和并输出注意事项:在新一轮循环前要对m,n清零!!!不然后几组的数据是在前几组数据上进行相加参考代码:```cpp#includeusingnamespacestd;intmain(){intx, 题解列表 2022年04月25日 0 点赞 0 评论 808 浏览 评分:9.0
Manchester-【平方和与立方和-题解(C语言代码)】 ####解题思路:输入整数m和n。设x为m到n所有偶数的平方和,y为m到n所有奇数的立方和。遍历m到n的每一个数i,若i是偶数,则求平方后加入x,若i是奇数则求立方后加入y。最后按格式输出x和y。####参考代码:```c#includeintmain(){intm, 题解列表 2020年04月23日 0 点赞 0 评论 1497 浏览 评分:9.9