摘要: 实现 #include <iostream> #include <string> #include <cstring> using namespace std; string line; int line_index = 0; void handle_link() { ++line_index; c 阅读全文
posted @ 2020-09-03 22:24 amonqsq 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 实现 #include <iostream> #include <string> #include <vector> #include <map> #include <sstream> #include <algorithm> #include <cstdlib> using namespace s 阅读全文
posted @ 2020-09-02 00:15 amonqsq 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 实现 #include<stdio.h> #include<vector> using namespace std; struct state{ int life,power; state(int a=0,int b=0):life(a),power(b){} }; vector<state>p[2 阅读全文
posted @ 2020-08-31 23:16 amonqsq 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 实现 #include <cstdio> int game_graph[16][16]; int block[4][4]; int main() { for (int i = 0;i < 15;++i) { for (int j = 0;j < 10;++j) { scanf("%d",&game_ 阅读全文
posted @ 2020-08-31 22:32 amonqsq 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 实现 #include <iostream> #include <string> #include <vector> #include <sstream> using namespace std; void handle_path(vector<string>& paths, string path 阅读全文
posted @ 2020-08-30 20:05 amonqsq 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 实现 #include <cstdio> int main() { long long num; scanf("%lld",&num); int sum = 0; while (num != 0) { sum += num % 10; num /= 10; } printf("%d",sum); } 阅读全文
posted @ 2020-08-30 13:36 amonqsq 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 实现 #include <cstdio> #define MAXN 32 int chess[MAXN][MAXN]; int marks[MAXN][MAXN]; int main() { int row, col; scanf("%d%d",&row,&col); for (int i = 0; 阅读全文
posted @ 2020-08-30 13:32 amonqsq 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 实现 #include <cstdio> #define MAXN 0x6f char map[MAXN][MAXN]; int row, col, ops_num; void paint_line(int x1, int y1, int x2, int y2) { char line; if (x 阅读全文
posted @ 2020-08-29 10:54 amonqsq 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 实现 #include <cstdio> #define MAXN 0x3ef int main() { int num; int nums[MAXN]; scanf("%d",&num); for (int i = 0;i < num;++i) { scanf("%d",&nums[i]); } 阅读全文
posted @ 2020-08-29 09:19 amonqsq 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 实现 #include <cstdio> bool is_leap_year_leap_month(int year,int month) { if (month == 2 && ((year % 400 == 0) || (year % 100 != 0 && year % 4 == 0))) { 阅读全文
posted @ 2020-08-29 09:12 amonqsq 阅读(150) 评论(0) 推荐(0) 编辑