摘要:
实现 #include <iostream> #include <string> #include <cstring> using namespace std; string line; int line_index = 0; void handle_link() { ++line_index; c 阅读全文
摘要:
实现 #include <iostream> #include <string> #include <vector> #include <map> #include <sstream> #include <algorithm> #include <cstdlib> using namespace s 阅读全文
摘要:
实现 #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 阅读全文
摘要:
实现 #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_ 阅读全文
摘要:
实现 #include <iostream> #include <string> #include <vector> #include <sstream> using namespace std; void handle_path(vector<string>& paths, string path 阅读全文
摘要:
实现 #include <cstdio> int main() { long long num; scanf("%lld",&num); int sum = 0; while (num != 0) { sum += num % 10; num /= 10; } printf("%d",sum); } 阅读全文
摘要:
实现 #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; 阅读全文
摘要:
实现 #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 阅读全文
摘要:
实现 #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]); } 阅读全文
摘要:
实现 #include <cstdio> bool is_leap_year_leap_month(int year,int month) { if (month == 2 && ((year % 400 == 0) || (year % 100 != 0 && year % 4 == 0))) { 阅读全文