题解列表

筛选

水仙花数判断!

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ for (int i = 100; i < 1000; i++) { in……

3029: 逆波兰表达式

摘要:解题思路:使用栈, 遇到数字入数字栈, 遇到操作符, 在操作符栈不为空,并且数字栈的长度大于等于2时,出栈计算,结果入栈注意事项: 最后在操作符不为空时,循环出栈计算参考代码:#include<ios……

全排列(递归)

摘要:解题思路:在第0位选取一个字母, 依次遍历字符串每个字符,如果被选过,不要再选, 递归到下一位; 如果当前位已经达到字符串长度, 输出选中的字符注意事项:  字符串索引从0开始, 注意边界; 另外, ……

我趣,这题直接输出也对

摘要:解题思路:无注意事项:无参考代码:#include <stdio.h>int main(){int date;    date=200;    printf("%d\n",date);    retu……

2880: 计算鞍点

摘要:``` #include using namespace std; int a[6][6]; int main() { int n = 5; for (int i = 1;……

2854: 密码翻译

摘要:``` #include using namespace std; const int N=100010; string a; //字符串 int main() { getline(c……

2858 整理药房

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;const int N=110;char s[N];int main(){ int……