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 评论 346 浏览 评分: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 评论 516 浏览 评分: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 评论 430 浏览 评分:9.9
求汽水瓶的数量 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int number(int emptyglass){ /*求解空汽水瓶能换多少瓶水*/ int fullglass,all…… 题解列表 2022年10月24日 0 点赞 0 评论 304 浏览 评分:0.0
aaaaaaaaaaaaaaaaaaa 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,m; while(~scanf("%d%d",&n,&m)) …… 题解列表 2022年10月24日 0 点赞 0 评论 380 浏览 评分:0.0
作为第二个题解我也很荣幸哦嘻嘻 摘要:解题思路:gets输入字符串,然后通过比较注意事项:300+300,我直接1000,啥也不怕参考代码:#include#includeint main() { char s[1000]; …… 题解列表 2022年10月24日 0 点赞 4 评论 691 浏览 评分:9.9
C++党,字符串哈希+二分查找LCP(最长公共前缀) 摘要:解题思路:1、首先序列的变化是由于队列中出现大于m的数字取模而改变序列的字典序最小而造成的,所以在序列中没有出现取模的时候序列不会变2、确定最小字典序是通过找到最长公共序列来确定:比如101012的最…… 题解列表 2022年10月24日 0 点赞 0 评论 779 浏览 评分: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 评论 616 浏览 评分:9.9
作为第一个题解我很荣幸 摘要:解题思路:利用getline可以正常输入空格注意事项:注意i和i-1参考代码:c++:#include <bits/stdc++.h>using namespace std;/*inline int …… 题解列表 2022年10月24日 0 点赞 0 评论 590 浏览 评分:9.9
aaaaaaaaaaaaaaaaaaa 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n; scanf("%d",&n); while(n--) …… 题解列表 2022年10月24日 0 点赞 0 评论 375 浏览 评分:10.0