平方和与立方和(其实没有那么难) 摘要:解题思路:18:05:49注意事项:参考代码:#include<stdio.h>int main(){ int m,n; int result1,result2;//result1表示奇数的立方和,r…… 题解列表 2022年01月13日 0 点赞 0 评论 662 浏览 评分:9.9
1211: 平方和与立方和 ```pythonwhileTrue:s1=0s2=0a,b=map(int,input().split())foriinrange(a,b+1):ifi%2==0:s1=s1+i**2ifi%2!=0:s2=s2+i**3print('{}{}'.format(s1,s2))``` 题解列表 2022年01月15日 0 点赞 0 评论 786 浏览 评分:9.9
平方和与立方和-题解(C++代码) 摘要:```cpp #include using namespace std; int main(){ int m,n; while(cin>>m>>n){ i…… 题解列表 2020年04月05日 0 点赞 0 评论 1562 浏览 评分:9.9
平方和与立方和-题解(C语言代码) ```c#include#includeintmain(intargc,constchar*argv[]){inti,x,y,n,m;while(EOF!=scanf("%d%d",&n,&m)){x=y=0;for(i=n;i 题解列表 2019年11月21日 0 点赞 0 评论 2178 浏览 评分:9.9
1211: 平方和与立方和 摘要:```cpp #include using namespace std; int main() { int m,n,a,b; while(cin>>m>>n) {…… 题解列表 2023年01月08日 0 点赞 0 评论 509 浏览 评分:9.9
平方和和立方和 摘要: #include int main() { int m,n; while((scanf("%d%d",&m,&n))!=EOF) …… 题解列表 2024年03月21日 0 点赞 0 评论 597 浏览 评分:9.9
1211基础解法(Python) 摘要:注意事项:用import sys的情况下进行多行输入第一个测试点有问题,但是结果没有错误,所以这两种方式有什么区别呢?参考代码:while True: try: a,b = map…… 题解列表 2023年05月29日 1 点赞 0 评论 581 浏览 评分:10.0