编写题解 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 评论 470 浏览 评分:0.0
两种方法求平方和(C语言代码) 解题思路:方法一:直接数学中两数的平方和计算。注意:一个整数a的平方和不能写成a^2,而应该写成a*a;方法二:利用math库中的pow(x,y)函数,计算x的y次方。参考代码:方法一:#includeintmain(){inta, 题解列表 2022年05月20日 2 点赞 0 评论 6088 浏览 评分:6.9
1951:求平方和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a,b,c;scanf("%d%d",&a,&b);c=a*a+b*b;printf("%d",c);re…… 题解列表 2022年04月08日 0 点赞 0 评论 616 浏览 评分:0.0
求平方和题解 摘要:解题思路:easy注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d",&a,&b); printf("%d",a…… 题解列表 2022年01月24日 0 点赞 0 评论 649 浏览 评分:0.0
求整数的平方和 摘要:解题思路:列方程组求和注意事项:注意基础细节知识参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d%d",&a,&b); c=a*a+b*b;…… 题解列表 2021年11月02日 0 点赞 0 评论 1422 浏览 评分:9.9
求两数平方和并输出 摘要:```c #include int main() { int A,B; scanf("%d%d",&A,&B); printf("%d",A*A+B*B); …… 题解列表 2021年10月27日 0 点赞 0 评论 1098 浏览 评分:9.0
简单代码易理解 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); printf("%d",a*a+b*b); re…… 题解列表 2021年08月11日 0 点赞 0 评论 380 浏览 评分:0.0
求平方和 c语言 摘要:解题思路:没有啥思路用手就行。注意事项:注意学好数学反复复习不然你还要去百度差真丢脸。参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d%d"…… 题解列表 2021年03月01日 0 点赞 0 评论 831 浏览 评分:0.0
求平方和-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void) { int A, B; scanf("%d %d", &A, &B); print…… 题解列表 2021年02月20日 0 点赞 1 评论 1387 浏览 评分:9.9
求平方和-题解(C语言代码) 摘要:解题思路:这道题很简单,就是输入一个整数然后求平方和,不需要考虑数据类型的转化。注意事项:注意格式参考代码:#include <stdio.h>int main(){ int a, b; scanf(…… 题解列表 2021年02月10日 0 点赞 0 评论 924 浏览 评分:0.0