题解列表

筛选

超简单,一看就懂的题解!!!

摘要:解题思路:看代码注释注意事项:注意,刚开始没有意识到,最后一次是没有弹起来的,所以最后一次是加零。参考代码:#include<bits/stdc++.h>  using namespace std; ……

要注意测试案例会包括空格

摘要:解题思路:注意事项:要用gets函数,测试数据里面有空格,%s接受不了参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; ……

c++十六进制转八进制

摘要:#include<bits/stdc++.h>using namespace std;const int N=100000;using ll=long long;char ch[]={&#39;0&#……

回文串(简单易懂c语言)

摘要:解题思路:先把a数组倒叙赋值给b数组,接着比较a,b数组是否相等注意事项:参考代码:                #include <stdio.h>               

字典解决法,简单

摘要:解题思路:用排除法来判断是否有解法,踢去不可能的,则是存在的注意事项:参考代码:s1 = input().strip() s2 = input().strip() s3 = input().str……

高级无磨损 崭新出厂

摘要:解题思路:注意事项:可以把成绩定义成int型参考代码:#include <stdio.h>struct Student{ char num[20]; char name[20]; float scor……