A+B for Input-Output Practice (VI)(怀氏c++) 摘要:#include <iostream> using namespace std; int main() { int a,n,t,s=0; cin>>n; for(int i=0…… 题解列表 2022年10月25日 0 点赞 0 评论 314 浏览 评分:9.9
A+B for Input-Output Practice (VII)(怀氏C++) 摘要:#include<iostream> using namespace std; int main() { int a,b; while(cin>>a>>b) cou…… 题解列表 2022年10月25日 0 点赞 0 评论 199 浏览 评分:9.9
A+B for Input-Output Practice (VI)(怀氏c++) 摘要: #include <iostream> using namespace std; int main () { int n; while (cin>>n){ in…… 题解列表 2022年10月25日 0 点赞 0 评论 232 浏览 评分:9.9
A+B for Input-Output Practice (V)(怀氏c++) 摘要:解题思路:注意事项:注意给的数字,从头之后都是1+2+3+4+。。。。+head;用for循环累加即可参考代码: #include <iostream>using namespace std;int…… 题解列表 2022年10月25日 0 点赞 0 评论 386 浏览 评分:9.9
A+B for Input-Output Practice (IV)(怀氏c++) 摘要:解题思路:4(5)开头就是就前4(5)个数的和,用两个循环解决注意事项:参考代码:#include<bits/stdc++.h>using namespace std; int main(){ …… 题解列表 2022年10月24日 0 点赞 1 评论 325 浏览 评分:9.9
C++党,字符串哈希+二分查找LCP(最长公共前缀) 摘要:解题思路:1、首先序列的变化是由于队列中出现大于m的数字取模而改变序列的字典序最小而造成的,所以在序列中没有出现取模的时候序列不会变2、确定最小字典序是通过找到最长公共序列来确定:比如101012的最…… 题解列表 2022年10月24日 0 点赞 0 评论 614 浏览 评分:8.8
A+B for Input-Output Practice (III)(怀氏c++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(1) { …… 题解列表 2022年10月24日 0 点赞 0 评论 486 浏览 评分:9.9
作为第一个题解我很荣幸 摘要:解题思路:利用getline可以正常输入空格注意事项:注意i和i-1参考代码:c++:#include <bits/stdc++.h>using namespace std;/*inline int …… 题解列表 2022年10月24日 0 点赞 0 评论 446 浏览 评分:9.9
A+B for Input-Output Practice (II)(怀氏c++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,a,b,i; cin>>n; for(i…… 题解列表 2022年10月24日 0 点赞 0 评论 755 浏览 评分:9.9
A+B for Input-Output Practice (I)(怀氏c++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b) …… 题解列表 2022年10月24日 0 点赞 0 评论 353 浏览 评分:7.3