题解列表

筛选

新手,感兴趣来看看

摘要:解题思路:注意事项:参考代码:#include<stdio.h>void link(char a[],char b[]);int main(){   char a[100];    char b[10……

最大公约数与最小公倍数(简化)

摘要:解题思路:辗转相除法求得最大公约数,再求得最小公倍数。注意事项:参考代码:#include <stdio.h>int main(){ int a,b; int t;  scanf("%d %d", &……

题解 2021: 坐标排序

摘要:解题思路:注意事项:参考代码:#include<stdio.h> void swap(int a[], int b[])    //交换 {     int i,k=0;     for(……
优质题解

信息学奥赛一本通T1456-图书管理:啊哈,这道题根本不用哈希,我就是奔着STL来的

这道题真的是用来练哈希表的无疑但是这道题真的用哈希吗?答案是:不用!我们都学过STL没学过去看一下,stack,queue,seet,map,这道题的书名还小于200:正是启用map的好时机!map:一种STL容器它的具体操作有map的基本操作函数:C++maps是一种关联式容器,

python-日期问题

摘要:```python date=input().split("/") numlist=[] year=date[0] month=date[1] day=date[2] def func……

超级简单版【c++】

````cpp#includeusingnamespacestd;intmonths[]={0,31,28,31,30,31,30,31,31,30,31,30,31};boolcheck(intyear,intmonth,intday){if(month12||day

编写题解 1204: 大小写转换

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