题解列表

筛选

编写题解 2839: 石头剪刀布

摘要:解题思路:m[i]表示A,t[i]表示Bq表示A胜得次数,W表示B胜得次数同时注意输入完AB各自的出题规律后要循坏填补后面的对决,即创建一个满足N轮的对局数组注意事项:参考代码:a#include<s……

1671: 小九九

摘要:```cpp #include using namespace std; int main() { int i=1,p=1; for(p=1;p……

字符排列问题

摘要:解题思路:注意事项:参考代码:方法一:直接全排列再去重from itertools import permutationstry:    while True:        a=input()   ……

1670: 拆分位数

摘要:```cpp #include using namespace std; int main() { int n; cin>>n; cout……

1669: 求圆的面积

摘要:```cpp #include #include #define pi 3.1415926 using namespace std; int main() { float r;……

2953: 特殊日历计算

摘要:```cpp #include #include using namespace std; int a[100],yue[13]={0,31,28,31,30,31,30,31,31,30,3……

2963: Tomorrow never knows?

摘要:输入的时候‘-’可以用getchar直接屏蔽掉 ```cpp #include #include using namespace std; bool IsLeapYear(int year)……

2969: 打印月历

摘要:```cpp #include using namespace std; int fun(int a,int b,int q); int main() { int i,j,m,n,……