We will hold JPRS Programming Contest 2026#2 (AtCoder Beginner Contest 470).
- Contest URL: https://atcoder.jp/contests/abc470
- Start Time: http://www.timeanddate.com/worldclock/fixedtime.html?iso=20260808T2100&p1=248
- Duration: 100 minutes
- Writer: sounansya, sheyasutaka, kyopro_friends
- Tester: vwxyz0
- Rated range: ~ 1999
- The point values: 100-200-300-400-450-500-600
We are looking forward to your participation!









I hope I can solve A to D.
I do that fast
I am from India, so I can participate in this contest, right?
as well as you're alive.
just need your brain to think,and your hand to press
I hope I can solve D to F.
膜拜大佬 ~
膜拜大佬 $$$\times 2$$$
Don't speak Chinese in Codeforces.
为什么?Why?
It's the rule.
Since Codeforces is a international website, languages like Chinese shouldn't be used.
Russian is OK because Codeforces is created by Russians.
hey, that's not fair. everybody should be allowed to speak his own language, as long as that does not create miscommunications.
I hope that I can solve 5 problems, even 6! Of course, good luck to everyone!
no man, you can't. you can't solve 6 x 5 x 4 x 3 x 2 x 1 = 720 problems, it's IMPOSSIBLE.
$$$6!$$$ or $$$6$$$ ? HA! It`s so funny~
lol
I am Chinese,I can fly!!!
me too.
这都是啥梗啊...... ~
me too.
Of course, 中国人能飞
Chinese can fly!
Surely,it is no doubt that Chinese can fly.
I hope I can solve A to D.Good luck to me,and good luck to everyone!
This is my first time to participate ABC contest,hopefully I can solve A to D,good luck to everyone!
I am Chinese,I can fly!!!
I am Chinese,I can fly!!!
I hope I can solve D ~ E
I'm Chinese,I can fly!!!
I hope I can solve A to E.
I hope to do the E question.
(cross out)(I'm Chinese, I can fly.)
I hope I can solve A to F.
And, I am Chinese, I can fly!!!
I hope I can solve A to B.
Too modest!
C is much harder than regular C (i skipped it and did D)
I think the difficulty of problem C is more than 600.
After many days, I finally came back to play the game.
rubbish task C, it should be task D. Downvote.
why D is EZer than C???? and I am Chinese,I can fly!!!
中国人能飞~中国人能飞~中国人能飞~黄皮肤才对~讲中文才飞~中国就是美~
emm...
Why "EZer"? Did you do it on purpose or by accident? XD
By the way, I am a Chinese, I can fly!! // Although I don`t know it means what? Looks fun!
it started from this: https://codeforces.me/blog/entry/155601?#comment-1383027
Wow, instant reply!
Thank you very much~
I finidhed A,B,D,G Score:1300 shit task C
And: I'm Chinese,i can fly!
Why C is too hard
Good problems, but I took too long to solve $$$C$$$ and $$$D$$$.
Are we sure C was actually a C problem??
You can use a set to maintain non-zero number
Yeah, after reading the editorial, it makes a lot of sense. Too bad I didn't think of that :/
How is the answer for testcase 2 of $$$F$$$ = 18?
{1, 2, 3} and {4, 5, 6} are the components.
{1, 2, 3} = 3! / (1 * 1 * 1) = 6 permutations {4, 5, 6} = 3! / (1 * 1 * 1) = 6 permutations
6 * 6 = 36 is the answer?
Remember that 10^100 is even, so you must do a even number of operations
Yes you are right, thanks! I was so close to solving this problem :(
It is noted that exactly 10^100 exchanges must be made. And: I'm Chinese, I can fly!
Exactly Google = Even
ans(Odd) = ans(Even)
36/2=18
C was so weird, it was a constraint analyzation problem, a pruned brute force works.
People who doesn't even know what is a time complexity and who can calculate time complexity very well could solve it very easily. It's so funny that you need to be low skilled or high skilled to be able to solve this task, and if you wil be in the middle you will struggle a lot.
Rubbish C and hard E.Trash round.Downvote it please.
C was OK I think. But G is too classical and E<F<G is unacceptable.
I feel that question G is quite similar to this one.
I dont know if this contest has tester or not, since its prepared by JPRS. But the problem position isnt sorted from easy to hard. Looking at the distribution of the solved number for each problems, its clear that D < C and F < E, not considering E < C because people can take too much time solving C and not looking at E for once.
Or im just dumb
The thing is that you need to don't know what is time complexity, or should be very good in calculating time complexity to be able to solve c, if you in the middle its hard.
In fact, we might be overthinking C. If you know that things like 'std::set' or 'std::vector' can optimize away the empty values (**only storing the ones that exist**), then you can just directly simulate it according to its idea and it works. It looks terrifyingly like O(n^2), but in reality it's only O(q)
I deal with it at 1h 20min!!!
plz ban zyf2026,his code is actually from ai
G is HDU4747.
Anyone explain problem C ...
if you maintain what positions have positive values and iterate over those positions when an operation of the second type happens, update XOR, and remove the values that become 0 from this list, for each iteration you do you cancel one operation of the first type, so basically operations of the first type will be applied O(q) times and will be cancelled O(q) times
my code:
yaa, you are right, I did not think of this, I was certain that it would lead to O(q^2).
fuck the C problem
Worst performance, i couldn't even solve C. :(
ai can do this. The editor says that we can use set to protect the array of index which > 0. At the same time,we can protect the XOR sum.ai says that we can use 0/1 trie(the knowledge of e or upper one), or fenwick tree+protect the bits array(the knowledge of f or upper one).In a word,f**k the people who made this problem. I will share the 0/1 trie code which coded by deepseek.
I hava a better solution then official about Problem D: My solution link
Every time there is a competition, I can see several users with black usernames on the first page of the leaderboard, and after a while, they disappear.
I hope that situations like the AI Beat Contest will not occur in the future. However, some people still try to use AI even though they know the chances of evading detection are slim.
I feel that C is harder than D , does anyone agree? :(
in my view, C is odd for its placement, E is verbose and hard to grasp, and G is simply too typical; the others are reasonably good though.
such nice problems, especially C,D
I think that C>>>>>>>>>>>>>>>>>>>>>>>>D
However, it is quite easy after you learnt potential method.
F > G > E hmmm....
I quickly completed problems A to D and started working on F, but I forgot to check the modulo answers, so I ultimately failed F
kang god, I upvote you.
My first G, although it took me 97 minutes :)
You're a legend!
You too
wow!
wow!
btw the title of question G was changed to "ΣШX", it's so funny
C is quite hard to think, I thought like that,would store indices of >=1 , but did not implement it, because I thought that it would give tle , because iterate over each value of index
I believe I can solve A to E in future.And if I am lucky,I can get into my dream high school by competitions! And good luck to everyone who reads this comment! Also,I am a Chinese,I can fly!!!
I C I F
No cheating but accounts were banned. :(
The C solution code of 0/1 trie coded by real human, me!
i think this C is hard i used 1 min to solve A,3 mins to solve B,but used 40 mins to solve C MIND YOU,I'm Chinese i can fly