这个题细节很多,wa了很多次 摘要:#include<bits/stdc++.h> using namespace std; int main() { int n; string s; cin>>n>…… 题解列表 2024年08月08日 0 点赞 0 评论 208 浏览 评分:0.0
最暴力的写法 摘要:#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; for(int i=0;i<=n;i…… 题解列表 2024年08月08日 0 点赞 0 评论 175 浏览 评分:8.0
原来不难,就只有第一个单词特殊啊 摘要:#include<bits/stdc++.h> using namespace std; int main() { string s; while(getline(cin,s)) {…… 题解列表 2024年08月08日 0 点赞 0 评论 128 浏览 评分:0.0
辗转相除最终归纳! 摘要:1.c++写#include<bits/stdc++.h> using namespace std; int _gcd(int a,int b) { while(b!=0)//可以简写…… 题解列表 2024年08月08日 0 点赞 0 评论 207 浏览 评分:0.0
奖学金:结构体多关键字排序 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <algorithm> using namespace std; struct st{ int sn,…… 题解列表 2024年08月08日 2 点赞 0 评论 298 浏览 评分:0.0
Jam的计数法C++ 摘要:解题思路: 如果字符串的第一个字母已经是最大可能的字母退出循环;否则从最后一个字母开始遍历, 如果当前字母已经是最大可能字母, 退出循环; 否则, 当前字母加 1, 该字母之后的每一个字母,依据当前…… 题解列表 2024年08月08日 0 点赞 0 评论 264 浏览 评分:9.9
字符串分类统计C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){char a[200];cin.get…… 题解列表 2024年08月07日 6 点赞 0 评论 767 浏览 评分:0.0
编写题解 1011: [编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int min(int a,int b){ return a>b?b:a;}int ma…… 题解列表 2024年08月07日 0 点赞 0 评论 222 浏览 评分:0.0
编写题解 2908: 白细胞计数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std; const int N=310; double a[N];in…… 题解列表 2024年08月07日 0 点赞 0 评论 164 浏览 评分:0.0
编写题解 2907: 不与最大数相同的数字之和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int N,a[100],sum=0,x=0; …… 题解列表 2024年08月07日 0 点赞 0 评论 247 浏览 评分:0.0