atcoder

Code_Shark3 个月前
c语言·算法·atcoder·oi·acm-icpc
AtCoder Beginner Contest 359 A~C(D~F更新中...)给出 N N N个字符串,每个字符串为以下两种字符串之一:"Takahashi""Aoki"请你统计"Takahashi"出现了多少次。
Code_Shark4 个月前
算法·atcoder·oi·acm-icpc
AtCoder Beginner Contest 352 A~E(F更新中...)有 N N N个车站,列车的运行有两种方向,即 1 → n 1 \rightarrow n 1→n和 n → 1 n \rightarrow 1 n→1两种。
zzc大魔王5 个月前
数据结构·c++·算法·思维·atcoder·beginner·abc
Toyota Programming Contest 2024#4(AtCoder Beginner Contest 348)(A~D)A - Penalty Kicki,1~N。如果 i 是 3 的倍数输出x,否则输出oB - Farthest Point
Enjoycola_6 个月前
c++·算法·蓝桥杯·codeforces·atcoder
Codeforces Round 935 (Div. 3)A~E有三种人,内向、外向、综合,内向必须独自一个帐篷,外向必须3个人一个帐篷,综合介于1~3人一个帐篷,我们发现非法情况只会存在外向的人凑不成3个人一个帐篷的情况,因外向不够可以向综合人借,故将二者合并并判断:
ros2752297 个月前
c++·算法·atcoder
(AtCoder Beginner Contest 341)(A - D)Tasks - Toyota Programming Contest 2024#2(AtCoder Beginner Contest 341)
Enjoycola_9 个月前
c++·算法·蓝桥杯·codeforces·atcoder
Educational Codeforces Round 160 (Rated for Div. 2) A~C目录A. Rating Increase题目分析:B. Swap and Delete题目分析:C. Game with Multiset
Enjoycola_9 个月前
c++·算法·蓝桥杯·codeforces·atcoder
Codeforces Round 916 (Div. 3)A~E2目录A. Problemsolving Log问题分析:B. Preparing for the Contest
Enjoycola_9 个月前
c++·算法·蓝桥杯·codeforces·atcoder
AtCoder Beginner Contest 333 A~E目录A - Three ThreesB - PentagonC - Repunit TrioD - Erase Leaves
Enjoycola_9 个月前
c++·算法·codeforces·atcoder
Codeforces Round 913 (Div. 3) A~E目录A. Rook问题分析:B. YetnotherrokenKeoard问题分析:C. Removal of Unattractive Pairs
rag_doll10 个月前
算法·atcoder
AtCoder ABC163D - Sum of Large Numbers不考虑 1 0 100 10^{100} 10100的情况下,检查能取到的最大和与最小和,此时中间的所有数都能取到 给出 1 0 100 10^{100} 10100的用意在于,确保取2个数与取3个数下面取到的和是不相同的。因此遍历取数的个数,累计答案。
rag_doll10 个月前
atcoder
AtCoder ABC162C - Sum of gcd of Tuples (Easy) 遍历abc即可D - RGB Triplets RGB做前缀和 然后遍历后两个数,求第一个的前缀和。而且在遍历时减去 i − j = j − k i-j=j-k i−j=j−k的情况。
Enjoycola_10 个月前
c++·codeforces·atcoder
AtCoder Beginner Contest 329 题解A~F输入字符串,字符之间加上空格输出输出数组当中第二大的数统计每个字符出现过的最长长度,再累加即可给定数组,每次第次的票加一,每次都输出最多票的人,
rag_doll1 年前
算法·atcoder
AtCoder abc140C - Maximal Value 遍历比较一下相邻的值 D - Face Produces Unhappiness 反向思维,考虑不开心的点 字符串可以规约成RR…RLL…LRR…RL…L这样相间的情况 每次操作只有把整段的R或者L反向,才能减少不开心的点 有几种不同的情况 RLRLR LRLR RLRL LRLRL 2.3两种情况是一样的 分情况考虑即可
rag_doll1 年前
python·atcoder
AtCoder ABC132陷入了“会做,但不完全会做”的状况 C 水题,排序找中间数两边的差值 D 组合数学 求把n个相同的球分到m个相同的盒子,1每个盒子至少一个球2每个盒子球不限的组合数 空挡插隔板法,高中数学