编写题解 2774: 计算三角形面积 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ float x1,x2,x3,y1,y2,y3; double a,b…… 题解列表 2024年12月05日 1 点赞 0 评论 524 浏览 评分:0.0
编写题解 2777: 计算2的幂 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i,n,sum=1; scanf("%d",&n); for(i=1;i<=n;i+…… 题解列表 2024年12月05日 0 点赞 0 评论 394 浏览 评分:0.0
编写题解 2781: 奇偶ASCII值判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ char ch; ch=getchar(); if(ch%2==0) printf("…… 题解列表 2024年12月05日 1 点赞 0 评论 953 浏览 评分:0.0
编写题解 2783: 判断是否为两位数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a; scanf("%d",&a); if(a>=10&&a<100) pri…… 题解列表 2024年12月05日 0 点赞 0 评论 669 浏览 评分:0.0
[编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int isperfect(int num) { // 判断是不是完数 int i, sum = 0; for …… 题解列表 2024年12月05日 1 点赞 0 评论 941 浏览 评分:0.0
1632C语言解决 摘要:解题思路:双重for循环解决问题注意事项:参考代码:#include<stdio.h>int main(){ int n; int i,j; scanf("%d",&n); for(i=1;i<=n;…… 题解列表 2024年12月05日 0 点赞 0 评论 298 浏览 评分:0.0
数据结构-定位子串 find 函数超简单 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义两个字符串变量s1和s2 …… 题解列表 2024年12月05日 0 点赞 0 评论 285 浏览 评分:0.0
后缀子串排序 stl 简单解法 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量,用于存储输入的字符串和结果向量 string s; ve…… 题解列表 2024年12月05日 0 点赞 0 评论 274 浏览 评分:0.0
C语言 简单代码 强行解题 一个for循环 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main ( ){ int k=0 ,record=0 ; char c=0 ; char a[1200]=…… 题解列表 2024年12月05日 0 点赞 0 评论 357 浏览 评分:0.0
b每次左移一位,为a的个位数求模留出空间 摘要:解题思路:建立新变量b=0。由于b的值是累加不断更新,因此初始值需要是0。循环逻辑:b每次左移一位,为a的个位数求模留出空间。数值更新:a每次同样左移,不断保存前一位的值,回溯到上面的循环里。参考代码…… 题解列表 2024年12月06日 0 点赞 0 评论 286 浏览 评分:0.0