无问西东gmy
无问西东gmy
全部文章
分类
归档
标签
去牛客网
登录
/
注册
无问西东gmy的博客
全部文章
(共7篇)
题解 | #分段函数#
#include <cstdio> #include <iostream> using namespace std; double f(int x) { double y; if (x >= 0 && x < 2) { ...
2024-01-28
0
243
题解 | #进制转换#
#include <iostream> #include <ostream> #include <cstring> using namespace std; void div2(char* data) { //将用字符串表示的非负整数da...
2024-01-06
0
253
题解 | #邮票#
#include <iostream>using namespace std;#define max 8 * 5 + 10 * 4 + 18 * 6 ...
2023-01-17
0
344
题解 | #加法等式#
#include <iostream>using namespace std;int main() { for (int a = 0; a <= 9; a++) for (int b = 0; b &l...
2023-01-17
0
391
题解 | #单词识别#
#include <iostream> #include <cstring> using namespace std; int main() { char ch[1000][100]; int n; ...
2023-01-17
0
344
题解 | #日期累加#
#include <iostream> using namespace std; int daytab[2][13] = { {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}, {0, 31, 29, 31, 30, ...
2023-01-17
0
276
题解 | #点的距离#
#include <iostream> #include <cmath> using namespace std; class CPoint { public: int x, y; CPoint(int _x, int _y): x(_x), y(_y) ...
2023-01-17
0
323