编写题解 2839: 石头剪刀布 摘要:解题思路:m[i]表示A,t[i]表示Bq表示A胜得次数,W表示B胜得次数同时注意输入完AB各自的出题规律后要循坏填补后面的对决,即创建一个满足N轮的对局数组注意事项:参考代码:a#include<s…… 题解列表 2023年01月29日 0 点赞 0 评论 991 浏览 评分:9.9
1671: 小九九 ```cpp#includeusingnamespacestd;intmain(){inti=1,p=1;for(p=1;p 题解列表 2023年01月29日 0 点赞 0 评论 936 浏览 评分:9.9
字符排列问题 摘要:解题思路:注意事项:参考代码:方法一:直接全排列再去重from itertools import permutationstry: while True: a=input() …… 题解列表 2023年01月29日 0 点赞 0 评论 583 浏览 评分:0.0
1670: 拆分位数 摘要:```cpp #include using namespace std; int main() { int n; cin>>n; cout…… 题解列表 2023年01月29日 0 点赞 0 评论 696 浏览 评分:9.9
1669: 求圆的面积 ```cpp#include#include#definepi3.1415926usingnamespacestd;intmain(){floatr;cin>>r;cout 题解列表 2023年01月29日 0 点赞 0 评论 799 浏览 评分:9.9
2953: 特殊日历计算 ```cpp#include#includeusingnamespacestd;inta[100],yue[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};intmain(){intmyear=0,mmonth=0, 题解列表 2023年01月29日 0 点赞 0 评论 703 浏览 评分:9.9
2972: 除以13(c++代码) 摘要:```cpp #include #include using namespace std; const int N=1e5+10; void fwrite(int n) { if(n>…… 题解列表 2023年01月29日 0 点赞 0 评论 713 浏览 评分:9.9
2963: Tomorrow never knows? 摘要:输入的时候‘-’可以用getchar直接屏蔽掉 ```cpp #include #include using namespace std; bool IsLeapYear(int year)…… 题解列表 2023年01月29日 0 点赞 0 评论 638 浏览 评分:7.3
2969: 打印月历 ```cpp#includeusingnamespacestd;intfun(inta,intb,intq);intmain(){inti,j,m,n,t,d,s=0;cin>>m>>n;t=abs(fun(m,n,1));if(m%4==0&&m%100!=0||m%400==0)s=1;switc 题解列表 2023年01月29日 0 点赞 0 评论 1014 浏览 评分:9.9
]自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d", &n); int i = 0; int m = 0; int a[100]…… 题解列表 2023年01月29日 0 点赞 0 评论 635 浏览 评分:0.0