题解 1211: 平方和与立方和

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

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))```

1211: 平方和与立方和

摘要:解题思路:注意事项:参考代码:while True:     try:         A,B=map(int,input().split())         pin,li=0,0     ……

1211基础解法(Python)

摘要:注意事项:用import sys的情况下进行多行输入第一个测试点有问题,但是结果没有错误,所以这两种方式有什么区别呢?参考代码:while True:    try:        a,b = map……