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