题解列表

筛选

求汽水瓶的数量

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int number(int emptyglass){    /*求解空汽水瓶能换多少瓶水*/    int fullglass,all……

aaaaaaaaaaaaaaaaaaa

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){        int n,m;        while(~scanf("%d%d",&n,&m))     ……

作为第二个题解我也很荣幸哦嘻嘻

摘要:解题思路:gets输入字符串,然后通过比较注意事项:300+300,我直接1000,啥也不怕参考代码:#include#includeint main() {    char s[1000];    ……

C++党,字符串哈希+二分查找LCP(最长公共前缀)

摘要:解题思路:1、首先序列的变化是由于队列中出现大于m的数字取模而改变序列的字典序最小而造成的,所以在序列中没有出现取模的时候序列不会变2、确定最小字典序是通过找到最长公共序列来确定:比如101012的最……

作为第一个题解我很荣幸

摘要:解题思路:利用getline可以正常输入空格注意事项:注意i和i-1参考代码:c++:#include <bits/stdc++.h>using namespace std;/*inline int ……

aaaaaaaaaaaaaaaaaaa

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){        int n;        scanf("%d",&n);        while(n--) ……

Hello, world!(怀氏c++)

摘要:解题思路:把数字转换成ASCI码值,就是对应的char类型值注意事项:参考代码:#include<iostream>using namespace std;int main(){    int a; ……