海绵宝宝来学C~题解 1007: [编程入门]分段函数求值 摘要:大家在第一眼看到这个题目的时候,可能会愣住,问题的表达式怎么这么乱,两个“{”和一个“|”是啥意思? 我认为正确的展示应该是: y={x,x…… 题解列表 2023年12月19日 0 点赞 0 评论 469 浏览 评分:0.0
有瑕疵请指出 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char ch[3][1000],b[1000]; int i; for(i…… 题解列表 2023年12月19日 0 点赞 0 评论 308 浏览 评分:0.0
2846: 统计数字字符个数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=300;int main(){ int sum=0; str…… 题解列表 2023年12月19日 0 点赞 0 评论 308 浏览 评分:0.0
JAVA题解2949-----oooooooo 摘要:解题思路:下标,累加注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[…… 题解列表 2023年12月19日 0 点赞 0 评论 418 浏览 评分:0.0
2846: 统计数字字符个数 摘要:``` #include using namespace std; int main(){ int cnt=0; string s; getline(cin,s); for(in…… 题解列表 2023年12月19日 0 点赞 0 评论 322 浏览 评分:0.0
2847: 找第一个只出现一次的字符 摘要:``` #include using namespace std; const int N=10010; char s[N]; int cnt[26]; int main(){ cin…… 题解列表 2023年12月19日 0 点赞 0 评论 358 浏览 评分:0.0
903: 不高兴的津津 摘要:``` #include using namespace std; const int N=110; int a[N] ,b[N]; int main() { int t = 0; …… 题解列表 2023年12月19日 0 点赞 0 评论 299 浏览 评分:0.0
题解 2850: 输出亲朋字符串 摘要: #include using namespace std; const int N=100000; int main() { string…… 题解列表 2023年12月19日 0 点赞 0 评论 307 浏览 评分:0.0
2850: 输出亲朋字符串 摘要:``` #include using namespace std; const int N=10010; int main(){ string a,b; getline(cin,a);…… 题解列表 2023年12月19日 0 点赞 0 评论 325 浏览 评分:0.0
利用指针遍历得到答案 摘要:解题思路:循环输入数据,利用指针遍历,然后寻找最大值,记录位置注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n;…… 题解列表 2023年12月19日 0 点赞 0 评论 365 浏览 评分:0.0