abc292[AtCoder Beginner Contest 292] 题解 写点题目转换下心情吧 A-CAPS LOCK 大水题 B-Yellow and Red Card 大水题 C-Four Variables 给定一个数NN,问有多少个有序正数数组(A,B,C,D)(A,B,C,D),满足A×B+C×D=NA×B+C×D=N。 这题荒芜的大脑拒绝思考,看着复杂度不超,写了O(N√N)O(NN...
Link:Tasks - AtCoder Beginner Contest 292 难度评分:7−39−444−579−1,272−1,522−2,340−2,248A - CAPS LOCK (Diff. 7)简要题意:给你一个只包含小写字母的字符串,将其中每一个字母改为对应的大写字母。Sample:Input:abc Output:...
abc292 c,统计a*b == x (1 <= x <= n)的方案数,答案就是cnt[i]*cnt[n-i]。 d,并查集,记录一个集合的点数和边数。 e,直接dfs搜索,扩展每个点最多能扩展出来的边,然后减去原有的边数。 f,二分log,数学结论O(1)。 二分,正三角形的边长,通过角度的转变,可以找出三角形的横向宽度。 Luogu第...
Atcoder ABC306 菜鸡ABCDEF实况:G很有感觉,但是没感觉对...o(∩∩)o...哈哈 982 1 01:01:41 App atcoder ABC292菜鸡日语题面ABCDEF实况:“正经”的日语单词又多认识了几个o(∩∩)o...哈哈;话说这次的F挺无聊的 822 0 01:44:59 App Atcoder ABC281 ABCDEF 扣脚菜鸡实况解说:感觉这周不难,DE...
AtCoder Beginner Contest 291 | ABC 吊打萌新珍贵录像 | A~G 题解 121 -- 2:34:14 App yukicoder contest 435 | 完成度 [5 / 7] 274 -- 1:56:52 App AtCoder Beginner Contest 363 | 完成度 [6 / 7] 129 -- 2:34:36 App Codeforces Round 955 (Div. 2) | 完成度 [4 / 6] 354...
1. Output If SS is hard to enter, print Bad; otherwise, print Good. Sample Input 1 Copy Copy AI检测代码解析 3776 1. Sample Output 1 Copy Copy AI检测代码解析 Bad 1. The second and third digits are the same, so 37763776 is hard to enter. ...
atcoder补题题解 abc_292 a~e 目录 A - CAPS LOCK B - Yellow and Red Card C - Four Variables D - Unicyclic Components E - Transitivity(补) A - CAPS LOCK 题意: 将输入字母转成大写 代码: #include<bits/stdc++.h>#defineint long longusing namespacestd;signedmain(){std::ios::sync_...
AtCoder Beginner Contest 292-C D E F C.Four Variables从正整数中,找出合适的ABCD,使得这个式子成立AB+CD=N。 可以看到,A与B是相互关联的,C与D是相互关联的,所以我们可以在小于N的正整数中,找寻可以相加的两个数,并且这两个数都可以分别表示为两个整数相乘,分别统计,同时注意AB的无序性即可。 下见代码...
Search or jump to... Search code, repositories, users, issues, pull requests... Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your...
usage: ./atcoder-tools codegen [-h] [--without-login] [--lang LANG] [--template TEMPLATE] [--save-no-session-cache] [--config CONFIG] url positional arguments: url URL (e.g. https://atcoder.jp/contests/abc012/tasks/abc012_3) optional arguments: -h, --help show this help messa...