求平方和(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<<…… 题解列表 2022年11月03日 0 点赞 0 评论 853 浏览 评分:9.0
编写题解 1951: 求平方和 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a = 0, b = 0; scanf("%d %d", &a, &b); …… 题解列表 2022年07月28日 0 点赞 0 评论 577 浏览 评分:0.0
求平方和(C语言) 摘要: #include int main() { int a,b; scanf("%d %d",&a,&b); printf…… 题解列表 2022年07月13日 0 点赞 0 评论 694 浏览 评分:0.0
来自于一个小菜鸟的(平方和)题解 摘要:解题思路: # 导入 math 包 import math1.# math 模块 pow() 方法的语法 2. #内置的 pow() …… 题解列表 2022年06月28日 0 点赞 0 评论 695 浏览 评分:0.0
关于圆周率的规范使用 摘要:解题思路:对圆周率的一种近似表示,需使用到宏定义,本题需要用到较高近似的圆周率注意事项:C语言中并不识别希腊字符π,要使用圆周率,需要自定义π的变量,并指定近似值。可以使用宏定义的方式,当精度要求不高…… 题解列表 2022年06月25日 0 点赞 0 评论 547 浏览 评分:0.0
编写题解 1951: 求平方和 摘要:解题思路:注意事项:参考代码:a = input()b = a.split(" ")c = (int(b[0]) * int(b[0]) + int(b[1]) * int(b[1]))print(c…… 题解列表 2022年06月16日 0 点赞 0 评论 535 浏览 评分:0.0
编写题解 1951: 求平方和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int A,B; scanf("%d%d",&A,&B); printf("%d",A*A + B*B); …… 题解列表 2022年05月24日 0 点赞 0 评论 429 浏览 评分:0.0
两种方法求平方和(C语言代码) 解题思路:方法一:直接数学中两数的平方和计算。注意:一个整数a的平方和不能写成a^2,而应该写成a*a;方法二:利用math库中的pow(x,y)函数,计算x的y次方。参考代码:方法一:#includeintmain(){inta, 题解列表 2022年05月20日 2 点赞 0 评论 5980 浏览 评分:6.9
1951: 求平方和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std ;long long a,b;int main(){ cin>>a>>b; c…… 题解列表 2022年05月05日 0 点赞 0 评论 626 浏览 评分:0.0
求平方和题解 摘要:解题思路:就个输入输出!注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int a,b;int main(){ scanf("%d%d",…… 题解列表 2022年04月30日 0 点赞 0 评论 800 浏览 评分:9.0