摘要: reference #include<iostream> #include<cstring> using namespace std; typedef long long LL; const int N = 100005; int a[N]; int main() { int n,k,x; LL s 阅读全文
posted @ 2022-01-18 14:08 ethon-wang 阅读(53) 评论(0) 推荐(0) 编辑
摘要: reference #include<iostream> #include<cstring> using namespace std; /*使得将巧克力按照边长maxX进行切分 ,切分成的份数要大于等于K, 而如果按照maxX+1进行切割 ,将不再能够切出K块。 如果从1-100000逐个查找,那么 阅读全文
posted @ 2022-01-18 13:36 ethon-wang 阅读(193) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <cstring> #include <algorithm> using namespace std; int res(int num){ if(num == 1){ return 1; } if(num == 2){ return 2; } 阅读全文
posted @ 2022-01-18 12:22 ethon-wang 阅读(221) 评论(0) 推荐(0) 编辑
摘要: simplememory 阅读全文
posted @ 2022-01-18 11:59 ethon-wang 阅读(54) 评论(0) 推荐(0) 编辑