摘要:
模拟。 string s,t; int m; int main() { cin>>s>>m; while(m--) { string op; cin>>op; if(op == "COPY") { int l,r; cin>>l>>r; t=s.substr(l,r-l+1); } else if( 阅读全文
posted @ 2021-05-23 19:37
Dazzling!
阅读(56)
评论(0)
推荐(0)
摘要:
找出所有约数,约数$x$所在的第$x$行存在一个$m$需满足条件: $x$不超过$n$ $m/x$不超过$n$。 int n, m; int main() { int T; cin >> T; while(T--) { cin >> n >> m; vector<int> divisor; for( 阅读全文
posted @ 2021-05-23 19:26
Dazzling!
阅读(40)
评论(0)
推荐(0)
摘要:
零比特填充法。 int main() { int T; cin >> T; while(T--) { string s; cin >> s; int cnt = 0; // 记录连续的1的个数 for(int i = 0; i < s.size(); i++) { if(cnt == 5) { cn 阅读全文
posted @ 2021-05-23 18:57
Dazzling!
阅读(49)
评论(0)
推荐(0)

浙公网安备 33010602011771号