题解 1951: 求平方和

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

筛选

求平方和 (C语言代码)

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

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

摘要:这个题就是基础题目了 我们可以用 #include 头文件的pow函数直接求出平方和 也可以用 sum = a*a+b*b; 那么就上代码 ```cpp #include……

1951: 求平方和

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> #include<bits/stdc++.h> using namespace std; ……

题目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: 求平方和

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