12 2022 档案
摘要:#include <bits/stdc++.h> using namespace std; char a[40][60]; //存图 int nextx[4] = { 1,0,0,-1 }, nexty[4] = { 0,-1,1,0 }; //D<L<R<U 字典序直接把方向数组处理好就可以了 i
阅读全文
摘要:把 2019 分解成 3 个各不相同的正整数之和,并且要求每个正整数都不包含数字 2 和 4,一共有多少种不同的分解方法? 注意交换 3 个整数的顺序被视为同一种方法,例如 1000+1001+18和 1001+1000+18被视为同一种。 #include<bits/stdc++.h> using
阅读全文