1049 结构体之时间设计 真的是C并且真的用了结构体 摘要:#思路 设计一个结构体date,内含int类型的变量三个:`year,mouth,day`。 定义一个结构体变量date1,**为其中的三个变量(`date1.year,date1.mouth,d…… 题解列表 2022年10月25日 0 点赞 0 评论 353 浏览 评分:9.0
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 评论 510 浏览 评分: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 评论 359 浏览 评分: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 评论 403 浏览 评分: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 评论 573 浏览 评分: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 评论 484 浏览 评分:9.9
求汽水瓶的数量 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int number(int emptyglass){ /*求解空汽水瓶能换多少瓶水*/ int fullglass,all…… 题解列表 2022年10月24日 0 点赞 0 评论 358 浏览 评分:0.0
aaaaaaaaaaaaaaaaaaa 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,m; while(~scanf("%d%d",&n,&m)) …… 题解列表 2022年10月24日 0 点赞 0 评论 445 浏览 评分:0.0
作为第二个题解我也很荣幸哦嘻嘻 摘要:解题思路:gets输入字符串,然后通过比较注意事项:300+300,我直接1000,啥也不怕参考代码:#include#includeint main() { char s[1000]; …… 题解列表 2022年10月24日 0 点赞 4 评论 743 浏览 评分:9.9
C++党,字符串哈希+二分查找LCP(最长公共前缀) 摘要:解题思路:1、首先序列的变化是由于队列中出现大于m的数字取模而改变序列的字典序最小而造成的,所以在序列中没有出现取模的时候序列不会变2、确定最小字典序是通过找到最长公共序列来确定:比如101012的最…… 题解列表 2022年10月24日 0 点赞 0 评论 866 浏览 评分:8.8