上一页 1 2 3 4 5 6 7 ··· 30 下一页
摘要: bzoj 1018 堵塞的交通traffic Description 有一天,由于某种穿越现象作用,你来到了传说中的小人国 小人国的布局非常奇特,整个国家的交通系统可以被看成是一个$2$行$C$列的矩形网格,网格上的每个点代表一个城市,相邻的城市之间有一条道路,所以总共有2$C$个城市和$3C-2$ 阅读全文
posted @ 2021-07-16 16:34 洛绫璃 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 438D - The Child and Sequence 题面 长度为n的非负整数数列,3种操作 求$[L,R]$所有数的和。 将$[L,R]$中所有数都$mod \ x$。 将$a_i$修改为$v$。 \(n,m≤100000\) 题解 对于一段区间,如果取模的数比这段区间所有的数都大,那取模就 阅读全文
posted @ 2021-07-16 10:28 洛绫璃 阅读(59) 评论(0) 推荐(0) 编辑
摘要: Codeforces Round #731 (Div. 3) A - Shortest Path with Obstacle int main() { ios::sync_with_stdio(0); cin.tie(0), cout.tie(0); int _; for (cin >> _; _; 阅读全文
posted @ 2021-07-15 14:53 洛绫璃 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 人均4题 阅读全文
posted @ 2021-07-14 14:27 洛绫璃 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 牛客练习赛86 A - 取因数 int main() { int n; cin >> n; if (n & 1) cout << "Bob"; else cout << "Alice"; return 0; } B- A + B \(k = 0\), 直接输出 \(0~99\) \(k = 1\), 阅读全文
posted @ 2021-07-10 22:16 洛绫璃 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 码风改起来好痛苦, 看着代码好难受 阅读全文
posted @ 2021-07-06 23:06 洛绫璃 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-07-05 22:37 洛绫璃 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 以后就不用宏定义了 阅读全文
posted @ 2021-06-28 13:40 洛绫璃 阅读(47) 评论(0) 推荐(0) 编辑
摘要: AtCoder Beginner Contest 206(Sponsored by Panasonic) A - Maxi-Buying int main() { IOS; int x; cin >> x; x = floor(x * 1.08); if (x < 206) cout << "Yay 阅读全文
posted @ 2021-06-24 16:31 洛绫璃 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-06-22 17:17 洛绫璃 阅读(80) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 ··· 30 下一页