
Codeup刷题
MokylinJay
Hello World!
展开
-
问题 I: 【字符串】回文串(判断回文串)
题目链接#include <iostream>#include <cstdio>#include <cstring>using namespace std;bool judege(char str[]){ int len = strlen(str); for (int i = 0; i < len; i++) { if (str[i] != str[len-i-1]) {原创 2020-10-24 09:00:49 · 181 阅读 · 0 评论 -
问题 A: 日期差值(求两日期间相差天数)
题目链接#include <iostream>#include <cstdio>#include <cstring>using namespace std;int mouth[13][2] ={ {0, 0}, {31, 31}, {28, 29}, {31, 31}, {30, 30}, {31, 31}, {30, 30}, {31, 31}, {31, 31}, {30, 30}, {31, 31}, {30, 30}, {3原创 2020-10-23 22:11:25 · 195 阅读 · 0 评论