这个题不考虑空格——第一个测试点不通过的原因 摘要:解题思路:之前用getchar()获得字符(\n结束),统计长度后正反各输出一次。然后第一个测试点死活不通过。红温过后使用scanf("%s",&str)即可。注意事项:呕…… 题解列表 2025年06月05日 0 点赞 0 评论 601 浏览 评分:0.0
高精度加法(sf11d) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;// 用字符串存储大数,避免数…… 题解列表 2025年06月05日 0 点赞 0 评论 345 浏览 评分:0.0
高精度乘法(sf11从) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;// 用字符串存储大数,避免数…… 题解列表 2025年06月05日 0 点赞 0 评论 378 浏览 评分:0.0
式子的质子式(sf12b) 摘要:解题思路:注意事项:最后一个质子后面不跟*参考代码:#include<bits/stdc++.h>using namespace std;const int N=10010;int che…… 题解列表 2025年06月04日 0 点赞 0 评论 246 浏览 评分:0.0
质子(sf12a) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=10010;int cheak(int x){ …… 题解列表 2025年06月04日 0 点赞 0 评论 233 浏览 评分:0.0
dfs深度(sf13e) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n,m,cnt=0;int a[102];int visited…… 题解列表 2025年06月01日 0 点赞 0 评论 327 浏览 评分:0.0
结构体之时间设计 摘要:解题思路:结构体注意事项:判断闰年参考代码:#include<bits/stdc++.h>using namespace std;struct year_month_day{int yea…… 题解列表 2025年06月03日 1 点赞 0 评论 343 浏览 评分:10.0
最长字符(sf12k) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s;&n…… 题解列表 2025年06月02日 0 点赞 0 评论 283 浏览 评分:0.0
stringstream /set去重(sf12j) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ strin…… 题解列表 2025年06月02日 0 点赞 0 评论 234 浏览 评分:0.0
getline输入字符串可包含空格(sf12i) 摘要:解题思路:注意事项:' '和" "不同参考代码:#include<bits/stdc++.h>using namespace std;int main(…… 题解列表 2025年06月02日 0 点赞 0 评论 308 浏览 评分:0.0