题解列表

筛选

结构体之时间设计

摘要:解题思路:    整体不算难。定义一个结构体,输入年、月、日;然后判断其是否是闰年,随后相加用户输入的月份减一的总天数,最后再加上用户输入的第几天,即完成。注意事项:    一定要注意闰年的判断方式:……

C语言正常人思维版

摘要:解题思路:注意事项:参考代码:#include#include#includeint cmp(char *num);int main(){    char str[31]="";    while(g……

这道题的题目有问题

摘要:解题思路:    注意事项:    参考代码:    #include <iostream>using namespace std;void input(int a[], int len) { for……

自定义函数之整数处理

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>#include<algorithm>using namespace std;void Input(v……

双向循环链表

摘要:#include <bits/stdc++.h> using namespace std; typedef struct Node{ int data; Node *prev,*next; ……

两个思路看看喜欢哪个吧

摘要:解题思路:仔细读题就会发现考的是分离四位数注意事项:用pow的话就是pow(p,p);//看下面的“p”第一种:正规求法#include<bits/stdc++.h>using namespace s……

暴力求解好吧

摘要:解题思路:没什么注意事项:(同上)参考代码:    #include<iostream>    using namespace std;    int main()    {        cout<……