摘要: 原题​#include using namespace std;string a;int main(){ cin>>a; int len=a.length(); int i=len-1; while(a[i]==... 阅读全文
posted @ 2020-04-04 22:11 BorisDimitri 阅读(47) 评论(0) 推荐(0)
摘要: 题目链接这题关于DP用f[i][j]表示横坐... 阅读全文
posted @ 2020-02-25 17:51 BorisDimitri 阅读(47) 评论(0) 推荐(0)
摘要: P1120 小木棍 [数据加强版]题解:#include #include #include int n, cnt, tot, maxn, minn, tm[70];void dfs(int res,int su... 阅读全文
posted @ 2020-02-18 17:41 BorisDimitri 阅读(41) 评论(0) 推荐(0)
摘要: CF11A Increasing Sequence入门题,就不解释了题解:算法复杂度为O(n)#include #include using namespace std;int a[2001];int main(... 阅读全文
posted @ 2020-02-16 18:01 BorisDimitri 阅读(58) 评论(0) 推荐(0)
摘要: CF1B Spreadsheets题解:#include using namespace std;char x[1000010];int main() { int n,i,j,k; cin>>n; for(i=1... 阅读全文
posted @ 2020-02-16 13:54 BorisDimitri 阅读(37) 评论(0) 推荐(0)
摘要: CF25A IQ test题解:#include using namespace std;int a[101];int main(int argc, char **argv){ int n; cin>... 阅读全文
posted @ 2020-02-16 13:51 BorisDimitri 阅读(598) 评论(0) 推荐(0)
摘要: 题目链接由于此题过于水,所以就不解释了直接上题解 题解: #include using namespace std;int a[101];int main(int argc, char **argv){ i... 阅读全文
posted @ 2020-02-16 13:48 BorisDimitri 阅读(157) 评论(0) 推荐(0)
摘要: 大水题让我们介绍一下STL库中的绝对值函数-... 阅读全文
posted @ 2020-02-15 18:10 BorisDimitri 阅读(88) 评论(0) 推荐(0)
摘要: CF9C Hexadecimal's Numbersせむすけヌ题解:#include#includeusing namespace std;int a[100],ans,n;int pow_(int a,int ... 阅读全文
posted @ 2020-02-15 17:21 BorisDimitri 阅读(15) 评论(0) 推荐(0)
摘要: P2404 自然数的拆分问题题解:#include using namespace std;int n,sum;int a[15]={1};void print(int t){ for(int i=1;i>n; ... 阅读全文
posted @ 2020-02-14 16:20 BorisDimitri 阅读(89) 评论(0) 推荐(0)