08 2023 档案

摘要:1. 基于条件控制的输出: // 可以有效避免行末空格 for(int i=1;i<=n;i++) { cout << ans[i] << " \n"[i==n]; } 原理解释: 当 \(i\neq n\) 时,表达式为 \(false\),对应 \(0\),即对应字符串的 \(s[0]='\ ' 阅读全文
posted @ 2023-08-09 23:01 Trilliverse 阅读(26) 评论(0) 推荐(0) 编辑
摘要:# [1857E.Power of Points](https://codeforces.com/contest/1857/problem/E "Codeforces 1857E") ## Description: - $n$ 个数:$x_1,···,x_n$,从左向右扫,当 $s=x_i$ 时,可 阅读全文
posted @ 2023-08-09 22:49 Trilliverse 阅读(36) 评论(0) 推荐(0) 编辑
摘要:# [AT_ABC307_G-Approximate Equalization I](https://atcoder.jp/contests/abc307/tasks/abc307_g "ABC307_G") [>> 没想到还有Approximate Equalization II !!:AT_AB 阅读全文
posted @ 2023-08-08 21:35 Trilliverse 阅读(10) 评论(0) 推荐(0) 编辑
摘要:# [1857D.Strong Vertices](https://codeforces.com/contest/1857/problem/D "Codeforces 1855B") ## Description: - 给定两个长度均为 $n$ 的数组 $a$ 和 $b$ (编号$1$~$n$),如 阅读全文
posted @ 2023-08-08 12:18 Trilliverse 阅读(27) 评论(0) 推荐(0) 编辑
摘要:# [AT_ABC313_C-Approximate Equalization II](https://atcoder.jp/contests/abc313/tasks/abc313_c "ABC313_C") [>> 没想到还有Approximate Equalization I !!:AT_AB 阅读全文
posted @ 2023-08-07 15:58 Trilliverse 阅读(32) 评论(0) 推荐(0) 编辑
摘要:# [1843D.Apple Tree](https://codeforces.com/contest/1843/problem/D "Codeforces 1843D") ## Description: - 一棵树( $Tree$ 无环无重边 ) $n$ 个节点,根节点为1(节点编号 $1$~$n 阅读全文
posted @ 2023-08-05 19:48 Trilliverse 阅读(78) 评论(0) 推荐(0) 编辑
摘要:# [1850H.The Third Letter](https://codeforces.com/contest/1850/problem/H "Codeforces 1850H") ## Description: - $n$ 个人,$m$ 个条件,每次给出两个人 $a_i$ 和 $b_i$ 一维 阅读全文
posted @ 2023-08-04 17:06 Trilliverse 阅读(89) 评论(0) 推荐(0) 编辑
摘要:# [1855B.Longest Divisors Interval](https://codeforces.com/contest/1855/problem/B "Codeforces 1855B") ## Description: - 对于一个整数 $n$ $(1\leq n \leq 10^{ 阅读全文
posted @ 2023-08-03 23:42 Trilliverse 阅读(59) 评论(0) 推荐(0) 编辑