摘要: 刚开始用的字符串来做,爆时间了; 采用如上推导,可以变成快速幂取模,这样一切就明了了; 还要注意,有的测试点算出了Nr=0,根据定律,只能得到N=k-1; 关键点: 无; #include<iostream> #include<string> #include<vector> using names 阅读全文
posted @ 2020-03-11 23:54 暮云林凌 阅读(226) 评论(0) 推荐(0)
摘要: 基本思想: 无; 关键点: 无; #include<iostream> #include<vector> #include<algorithm> #include<math.h> #include<string> using namespace std; void mutlip(string &s, 阅读全文
posted @ 2020-03-11 23:01 暮云林凌 阅读(215) 评论(0) 推荐(0)
摘要: 基本思想: 无; 关键点: 无; #include<iostream> #include<vector> #include<algorithm> #include<math.h> using namespace std; typedef long long ll; void charge(ll n) 阅读全文
posted @ 2020-03-11 12:14 暮云林凌 阅读(165) 评论(0) 推荐(0)
摘要: 基本思路: 无; 关键点: 无; #include<iostream> #include<string> #include<vector> #include<algorithm> using namespace std; vector<int>vec; int mostin(int a, int b 阅读全文
posted @ 2020-03-11 12:03 暮云林凌 阅读(183) 评论(0) 推荐(0)
摘要: 基本思想: 无; 关键点: 无; #include<iostream> #include<string> using namespace std; typedef long long ll; ll tranten(string s,int r) { ll cnt = 0; for (int i = 阅读全文
posted @ 2020-03-11 02:01 暮云林凌 阅读(152) 评论(0) 推荐(0)
摘要: 基本思想: 无; 关键点: 无; #include<iostream> #include<string> using namespace std; void charge(string s) { int cnt = 0; for (int i = 0; i < s.size(); i++) { if 阅读全文
posted @ 2020-03-11 01:43 暮云林凌 阅读(134) 评论(0) 推荐(0)
摘要: 基本思想: 无; 关键点: 无; #include<iostream> #include<string> using namespace std; typedef long long ll; void charge(ll r, ll n) { if (n == 0) { cout << 0 << e 阅读全文
posted @ 2020-03-11 01:36 暮云林凌 阅读(166) 评论(0) 推荐(0)
摘要: 基本思想: 无; 关键点: 无; #include<iostream> #include<string> using namespace std; void charge(int n) { string res = ""; if (n == 0) { cout << 0 << endl; retur 阅读全文
posted @ 2020-03-11 01:26 暮云林凌 阅读(178) 评论(0) 推荐(0)
摘要: 基本思想: 如果采用补全,可以有效减少长度; 关键点: 无; #include<iostream> #include<vector> #include<string> #include<sstream> #include<algorithm> using namespace std; vector< 阅读全文
posted @ 2020-03-11 01:17 暮云林凌 阅读(154) 评论(0) 推荐(0)
摘要: 基本思想: 其实如果只有空格完全可以stringstream来做; 关键点: 无; #include<iostream> #include<vector> #include<string> #include<sstream> using namespace std; int main() { str 阅读全文
posted @ 2020-03-11 00:19 暮云林凌 阅读(147) 评论(0) 推荐(0)