题解 1951: 求平方和

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

筛选

求平方和-题解(C语言代码)

摘要:解题思路:这道题很简单,就是输入一个整数然后求平方和,不需要考虑数据类型的转化。注意事项:注意格式参考代码:#include <stdio.h>int main(){ int a, b; scanf(……

编写题解 1951: 求平方和

摘要:解题思路:求两个数的平方和                  定义两个变量a,b,再定义一个变量s存放所求的值;                  用  scanf 输入变量;            ……

题目1951:求平方和

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a,s,d,f;cin >> s;cin >> a;d……

编写题解 1951: 求平方和

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a = 0, b = 0; scanf("%d %d", &a, &b); ……

关于圆周率的规范使用

摘要:解题思路:对圆周率的一种近似表示,需使用到宏定义,本题需要用到较高近似的圆周率注意事项:C语言中并不识别希腊字符π,要使用圆周率,需要自定义π的变量,并指定近似值。可以使用宏定义的方式,当精度要求不高……

编写题解 1951: 求平方和

摘要:解题思路:注意事项:参考代码:a = input()b = a.split(" ")c = (int(b[0]) * int(b[0]) + int(b[1]) * int(b[1]))print(c……

编写题解 1951: 求平方和

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int A,B; scanf("%d%d",&A,&B); printf("%d",A*A + B*B); ……

1951:求平方和

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a,b,c;scanf("%d%d",&a,&b);c=a*a+b*b;printf("%d",c);re……

求平方和题解

摘要:解题思路:easy注意事项:参考代码:#include<stdio.h>int main(){    int a,b;    scanf("%d%d",&a,&b);    printf("%d",a……