上一页 1 2 3 4 5 6 7 8 9 ··· 30 下一页
摘要: AtCoder Beginner Contest 199(Sponsored by Panasonic) A - Square Inequality int main() { IOS; cin >> n >> m >> k; n *= n, m *= m, k *= k; cout << (n + 阅读全文
posted @ 2021-04-24 22:09 洛绫璃 阅读(84) 评论(2) 推荐(0) 编辑
摘要: 牛客练习赛81 自闭了 A 小 Q 与异或 被签到卡死了 先排序, 出现两个位置相同数不同 -1 否则$p_i$这个位置的值为 前面的前缀和 也就是$x_{i- 1}$, 则当前位置为 \(a_i = x_{i - 1} \bigoplus {x_i}\), 然后时处理 \([p_{i - 1} + 阅读全文
posted @ 2021-04-24 17:23 洛绫璃 阅读(51) 评论(0) 推荐(0) 编辑
摘要: Contest 2050 and Codeforces Round #718 (Div. 1 + Div. 2) 也就会写写模拟了 A - Sum of 2050 数位和 int main() { IOS; for (cin >> _; _; --_) { ll n, x; cin >> n; if 阅读全文
posted @ 2021-04-24 10:40 洛绫璃 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-04-22 16:00 洛绫璃 阅读(102) 评论(0) 推荐(1) 编辑
摘要: 阅读全文
posted @ 2021-04-21 00:26 洛绫璃 阅读(81) 评论(0) 推荐(0) 编辑
摘要: atCoder Regular Contest 117 A - God Sequence 贪心就行,先把多的输出了就好 int main() { IOS; cin >> n >> m; if (m >= n) { rep (i, 1, m) cout << -i << ' ', k -= i; re 阅读全文
posted @ 2021-04-19 15:25 洛绫璃 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-04-19 13:02 洛绫璃 阅读(66) 评论(0) 推荐(1) 编辑
摘要: 牛客挑战赛49 tjc的签到 ll ans = -1, w = 0; int main() { IOS; map<int, int> st; cin >> n; rep (i, 1, n) cin >> m, ++st[m]; for (auto &i : st) if (umax(ans, (ll 阅读全文
posted @ 2021-04-17 17:46 洛绫璃 阅读(73) 评论(0) 推荐(1) 编辑
摘要: 阅读全文
posted @ 2021-04-13 12:24 洛绫璃 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-04-13 00:05 洛绫璃 阅读(154) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 30 下一页