编写题解 2773: 计算线段长度 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ double Xa,Xb,xa,xb; double s; …… 题解列表 2024年12月05日 1 点赞 0 评论 368 浏览 评分:0.0
编写题解 2774: 计算三角形面积 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ float x1,x2,x3,y1,y2,y3; double a,b…… 题解列表 2024年12月05日 1 点赞 0 评论 313 浏览 评分: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 评论 205 浏览 评分:0.0
编写题解 2781: 奇偶ASCII值判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ char ch; ch=getchar(); if(ch%2==0) printf("…… 题解列表 2024年12月05日 0 点赞 0 评论 463 浏览 评分:0.0
编写题解 2783: 判断是否为两位数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a; scanf("%d",&a); if(a>=10&&a<100) pri…… 题解列表 2024年12月05日 0 点赞 0 评论 375 浏览 评分:0.0
[编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int isperfect(int num) { // 判断是不是完数 int i, sum = 0; for …… 题解列表 2024年12月05日 1 点赞 0 评论 704 浏览 评分: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 评论 147 浏览 评分:0.0
数据结构-定位子串 find 函数超简单 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义两个字符串变量s1和s2 …… 题解列表 2024年12月05日 0 点赞 0 评论 93 浏览 评分:0.0
后缀子串排序 stl 简单解法 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量,用于存储输入的字符串和结果向量 string s; ve…… 题解列表 2024年12月05日 0 点赞 0 评论 134 浏览 评分: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 评论 154 浏览 评分:0.0