摘要:
传送门 A: 1 /**\ 2 思路:遍历最后一位即可 因为7个数一个循环,最后一位数必定出现7的倍数 3 \**/ 4 #include <bits/stdc++.h> 5 6 using namespace std; 7 8 signed main() 9 { 10 int _; 11 cin 阅读全文
posted @ 2022-02-16 22:43
std&ice
阅读(80)
评论(0)
推荐(0)
摘要:
1 #include <bits/stdc++.h> 2 3 using namespace std; 4 5 const int N = 1e6 + 10; 6 7 int ok = 0; 8 9 int n; 10 struct node 11 { 12 int l, r; 13 } t[N]; 阅读全文
posted @ 2022-02-16 16:25
std&ice
阅读(81)
评论(0)
推荐(0)
摘要:
一道水题,直接线段树水过去。 1 #include <bits/stdc++.h> 2 3 using namespace std; 4 5 const int N = 100010; 6 int n, a[N]; 7 8 struct node 9 { 10 int l, r, num, id; 阅读全文
posted @ 2022-02-16 16:01
std&ice
阅读(88)
评论(0)
推荐(0)
摘要:
1 #include <bits/stdc++.h> 2 3 using namespace std; 4 5 //方法一 翻转字符串 6 void method1() 7 { 8 string s = "i love acm"; 9 reverse(s.begin(), s.end()); 10 阅读全文
posted @ 2022-02-16 14:09
std&ice
阅读(1594)
评论(0)
推荐(0)

浙公网安备 33010602011771号