We will hold Toyota Programming Contest 2024#11(AtCoder Beginner Contest 379).
- Contest URL: https://atcoder.jp/contests/abc379
- Start Time: http://www.timeanddate.com/worldclock/fixedtime.html?iso=20241109T2100&p1=248
- Duration: 100 minutes
- Writer: MtSaka, toam, physics0523
- Tester: yuto1115, cn449
- Rated range: ~ 1999
- The point values: 100-200-300-400-475-550-575
We are looking forward to your participation!









I want to ask how can come up with the solution in a short time. Sorry for my weak English.
practice
GL && HF!
Today is my birthday!
happy birthday ! cook this round
C is way much harder than a 300-score problem, I think it worth at least 400.
F was beautiful!
For E, my only observation is:
For some number, says, 349685
Ans = 333333 + 2 * 44444 + 3 * 9999 + 4 * 666 + 5 * 88 + 6 * 5
But this will definitely get TLE, so how the hell did u guys manage to solve it?
I unaccepted C at about 20:30,and I dont accept so far,but I dont know why I unaccepted.
Why did it WA?my submission
Perhaps overflow caused by line 50 and 55 because even if your ans stored in ll, but you perform multiplication on integers with l, r, and b
Why bruteforce works for D? Solution
During he contest, I thought that was the intended solution. It works because a plant only be harvest(count/delete) for once.
I think it should TLE. Eg a case where the first 1e5 queries are type 1, and the next 1e5 queries are type 2. Even if you compress Type 2 queries, should still TLE if you alternate between type 1 and type 2 queries...
sorry, I missunderstood the OP's solution.
But if the second operation was changed to something similar to lazy tag(then you insert -tag, and delete >= H-tag), then it works.
How to solve E? My approach is to consider the contribution of each digit, but used High Precision which caused TLE. :(
My bad for not checking conditions, but still not to sort input in C was totally unnecessary :(
felt F was a next greatest ele problem but got confused from the testcases?
Example:
2 1 4 3 5
query: 1 and 2
expected ans: 2 (buildings with heights 3 and 5)
how is 1 able to see 3 and 5 ? isn't it blocked by 4 (building 3)
You misread the example. It is building index 3 and 5 (not height) that can be seen. Building index 3's height is 4 and building index 5's height is 5.
ohh it was a previous greater + next greater combo
damn could've solved it
Can someone help with finding what's wrong with my submission for problem C https://atcoder.jp/contests/abc379/submissions/59600147
Try this test case;
Why no blog of ABC380 yet?