编写题解 2772: 苹果和虫子 摘要:解题思路:无注意事项:无参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double n,x,y; cin>>n>…… 题解列表 2023年11月26日 0 点赞 0 评论 635 浏览 评分:9.9
字符串中间和后边*号删除(用指针狠狠调试) 参考代码:```c#include#includeintfun(char*a){while(*a=='*')//遍历过前导*,不做处理{a++;}while(*a!='\0')//开始处理字符串中间和后边的{if(*a=='*'){char*b=a;while(*(b+1)!='\0'){*b=*(b 题解列表 2023年11月26日 0 点赞 0 评论 575 浏览 评分:0.0
统计字符数(再初始化一个数组存26个字母的出现次数,以每个元素减去'a',得序号来存入数组) 摘要:参考代码: ```c #include #include int main() { int n; scanf("%d",&n); char s[1001]; while(~s…… 题解列表 2023年11月26日 0 点赞 0 评论 570 浏览 评分:0.0
奥运奖牌计数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() {int n,gold=0,silver=0,copper=0;scanf("%d",&n);int a[n][…… 题解列表 2023年11月25日 0 点赞 0 评论 882 浏览 评分:9.9
整数序列的元素最大跨度值 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int n,max,min; scanf("%d",&n); int a[n]; f…… 题解列表 2023年11月25日 0 点赞 0 评论 788 浏览 评分:9.9
题目2009:第一个带类的程序(带set函数) 摘要:```import java.util.Scanner;public class Main { public static void main(String[] args) { M…… 题解列表 2023年11月25日 0 点赞 0 评论 670 浏览 评分:0.0
字符串连接 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; char b[100]; int…… 题解列表 2023年11月25日 0 点赞 0 评论 1086 浏览 评分:0.0
求矩阵的两对角线上的元素之和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,sum1=0,sum2=0,sum; scanf("%d",&n); in…… 题解列表 2023年11月25日 0 点赞 0 评论 423 浏览 评分:0.0
编写题解 2918: 成绩排序 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; struct u { int k; string s…… 题解列表 2023年11月25日 0 点赞 0 评论 540 浏览 评分:9.9
2990: 十进制到八进制 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int n,a[1000],cnt;int main(){ cin>>n; …… 题解列表 2023年11月25日 0 点赞 0 评论 695 浏览 评分:9.9