求平方和-题解(C语言代码) 摘要:解题思路:这道题很简单,就是输入一个整数然后求平方和,不需要考虑数据类型的转化。注意事项:注意格式参考代码:#include <stdio.h>int main(){ int a, b; scanf(…… 题解列表 2021年02月10日 0 点赞 0 评论 259 浏览 评分:0.0
编写题解 1951: 求平方和 摘要:解题思路:求两个数的平方和 定义两个变量a,b,再定义一个变量s存放所求的值; 用 scanf 输入变量; …… 题解列表 2024年12月03日 0 点赞 0 评论 402 浏览 评分:0.0
题目1951:求平方和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a,s,d,f;cin >> s;cin >> a;d…… 题解列表 2023年12月05日 0 点赞 0 评论 152 浏览 评分:0.0
编写题解 1951: 求平方和 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a = 0, b = 0; scanf("%d %d", &a, &b); …… 题解列表 2022年07月28日 0 点赞 0 评论 262 浏览 评分:0.0
求平方和(C语言) 摘要: #include int main() { int a,b; scanf("%d %d",&a,&b); printf…… 题解列表 2022年07月13日 0 点赞 0 评论 268 浏览 评分:0.0
关于圆周率的规范使用 摘要:解题思路:对圆周率的一种近似表示,需使用到宏定义,本题需要用到较高近似的圆周率注意事项:C语言中并不识别希腊字符π,要使用圆周率,需要自定义π的变量,并指定近似值。可以使用宏定义的方式,当精度要求不高…… 题解列表 2022年06月25日 0 点赞 0 评论 170 浏览 评分: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 评论 170 浏览 评分: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 评论 128 浏览 评分:0.0
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 评论 218 浏览 评分:0.0
求平方和题解 摘要:解题思路:easy注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d",&a,&b); printf("%d",a…… 题解列表 2022年01月24日 0 点赞 0 评论 331 浏览 评分:0.0