题解列表

筛选

用栈解决这个问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<math.h>#define maxsize 101typedef struct{……

1865: 换硬币

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<bits/stdc++.h> using namespace std; int func(int n) {……

1864: 数日子

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<bits/stdc++.h> using namespace std; int main() {    ……

1859: 与2无关的数

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<bits/stdc++.h> using namespace std; bool func(int i); ……

1856: 最小三个数

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() {     int n;     int arr[100]……

1855: 输出字符&#039;A&#039;个数

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() {     int n;     cin>>n;    ……

C++ 字符串比较(简洁 ——易懂)

#//利用strcmp函数##//用法:intn=strcmp(a,b);###//strcmp函数说是返回的是1,-1,0,它不是真的是1,-1,0;###//只是表示是正,负,零;#include#includeusingnamespacestd;intmain(){chara[1005],