摘要: 实现 #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) 编辑