我也不知道怎么学
我也不知道怎么学
全部文章
分类
归档
标签
去牛客网
登录
/
注册
我也不知道怎么学的博客
全部文章
(共13篇)
题解 | 坠落的蚂蚁
#include <iostream> #include <vector> #include <algorithm> struct Ant { int pos; int dir; }; // dir: -1 左, 1 右, 0 静止 int mai...
2025-05-20
0
41
题解 | 剩下的树
#include<iostream> using namespace std; int main() { int L, M; while (cin >> L >> M) { int s[100], e[100]; int n = 0; ...
2025-05-15
0
56
题解 | 日期差值
#include<iostream> #include<math.h> using namespace std; bool isLeap(int y) { if ((y % 400 == 0) || (y % 100 != 0 && y % 4 ==...
2025-05-08
0
45
题解 | 日期累加
#include<iostream> #include <iomanip> using namespace std; bool isLeap(int y) { if ((y % 400 == 0) || (y % 100 != 0 && y % 4 ...
2025-05-07
0
63
题解 | 打印日期
#include <iostream> #include <iomanip> // 为了 setw / setfill using namespace std; /* 判断闰年:400 留、100 丢、4 留 */ bool isLeap(int y) { re...
2025-05-06
0
46
题解 | 今年的第几天?
#include <iostream> using namespace std; /* 判断闰年 */ bool isLeap(int y) { return (y % 4 == 0 && y % 100 != 0) || (y % 400 == 0); } ...
2025-05-06
0
59
题解 | Hello World for U
#include<iostream> #include<string> using namespace std; int main() { const int max = 90; char board[max][max]; string s; while (ci...
2025-05-06
0
43
题解 | xxx定律
#include <iostream> using namespace std; int main() { int x; while(cin>>x){ int count = 0; while(x != 1){ ...
2025-04-26
0
46
题解 | Old Bill
#include <iostream> using namespace std; int main() { int n, a, b, c; while (cin >> n >> a >> b >> c) { /...
2025-04-26
0
52
题解 | 与7无关的数
#include <iostream> using namespace std; int main() { int n; int a; int temp = 0; cin >> n; for(a = 1;a <= n;a++){...
2025-04-26
0
64
首页
上一页
1
2
下一页
末页