Kogut_Ivan's blog

By Kogut_Ivan, 9 months ago, translation, In English

Hello, Codeforces!

The TG channel team @KogutIvanTutoring is pleased to invite you to participate in Codeforces Round 1043 (Div. 3) on Aug/21/2025 17:35 (Moscow time) — another Codeforces round for the third division. This round will feature 6-8 problems selected in difficulty to create an interesting competition for participants with ratings up to 1600. However, anyone with a rating of 1600 or higher can register for the round out of competition.

The round will follow the rules of educational rounds. Thus, during the round, the problems will be tested on preliminary tests, and after the round, there will be a 12-hour phase of open hacking. After this phase, all successful attempts will be retested on successful hacks. We have tried to create decent tests — just like you, we will be disappointed if many solutions fail after the contest ends.

You will be offered 6-8 problems and 2 hours 15 minutes to solve them.

The penalty for an incorrect attempt in this round will be 10 minutes.

We remind you that only reliable participants of the third division will be included in the official results table. As stated in the link — this is a necessary measure to combat unsportsmanlike behavior. To qualify as a reliable participant of the third division, you must:

  • participate in at least five rated rounds (and solve at least one problem in each of them)
  • not have a rating point of 1900 or higher.

Regardless of whether you are a reliable participant of the third division or not, if your rating is below 1600, the round will be rated for you.

The problems were conceived and prepared by part of our team: fstilus, EzikBro, KotlechkovEgor, Wileyne, Friendiks, Boodoochai, pskobx

Also, a big thank you to:

Good luck to everyone!

UPD. Editorial is out!

  • Vote: I like it
  • -154
  • Vote: I do not like it

»
9 months ago, hide # |
Rev. 3  
Vote: I like it -17 Vote: I do not like it

Good luck to everyone, there's no FSTs in this contest!

»
9 months ago, hide # |
 
Vote: I like it -58 Vote: I do not like it

yo guys, can you help me back to positive contribution?

»
9 months ago, hide # |
 
Vote: I like it -29 Vote: I do not like it

good contest :)

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

:)

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Well,I have a flight tomorrow morning.So I am thinking about should I have this compitition.

»
9 months ago, hide # |
 
Vote: I like it -8 Vote: I do not like it

my streak for positive delta would end after i reach specialist for sure or even higher!!!

»
9 months ago, hide # |
 
Vote: I like it -8 Vote: I do not like it

hope this is the last div.3 i officially participate in

»
9 months ago, hide # |
Rev. 2  
Vote: I like it -36 Vote: I do not like it

I just want +ve delta 🥲

edit: why am i getting downvoted???

»
9 months ago, hide # |
 
Vote: I like it +6 Vote: I do not like it

Hello, I participate for the first time in a competition , I didn't even know codeforces existed before today and I look forward to compete. Thanks, good luck to all.

»
9 months ago, hide # |
 
Vote: I like it +22 Vote: I do not like it

There will officialy be Silksong news 5 minutes before the round. That'll either give me the boost straight for specialist, or make me want to kill myself. Let's hope it's the former.

»
9 months ago, hide # |
 
Vote: I like it +5 Vote: I do not like it

I am looking forward to this game very much

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I hope it'll be good contest for everyone and I'll get a huge + delta.

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

This is my first ever time participating in a CF contest, hopefully goes well :)

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I will compete for being expert, I hope I do well and enjoy this round.

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Hoping to leave pupil this time

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it
»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

This can change my life , what is life all about , the world must evolve back to caves , best of luck everyone

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

long time no Contest

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Vladosiya, cry, Proof_by_QED here?

I have to participate!

»
9 months ago, hide # |
 
Vote: I like it +4 Vote: I do not like it

Finally , CF is back to ruin my day again :)

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Will I be pupil?

»
9 months ago, hide # |
 
Vote: I like it -18 Vote: I do not like it

What a great contest!! Thanks to authours!!

»
9 months ago, hide # |
 
Vote: I like it -25 Vote: I do not like it

Wishing high ratings to everyone!!

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

19k solves in B? CF is cooked.

»
9 months ago, hide # |
 
Vote: I like it +4 Vote: I do not like it

MathForces

»
9 months ago, hide # |
 
Vote: I like it +4 Vote: I do not like it

Was hard as Div2

»
9 months ago, hide # |
 
Vote: I like it +12 Vote: I do not like it

C2 was tough, but such an amazing problem!

  • »
    »
    9 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    can u help in that.

    • »
      »
      »
      9 months ago, hide # ^ |
      Rev. 2  
      Vote: I like it 0 Vote: I do not like it

      my approach was kind of greedy. I used my c1 approach first where i find the min cost with min deals. Then:

           if number of deals <= k:
             from the deal with highest x:
              if k>2:
                 k-=2, cnt[x-1]+=3
      

      Here cnt[i] means the number of deals I have for x = i

    • »
      »
      »
      9 months ago, hide # ^ |
      Rev. 3  
      Vote: I like it 0 Vote: I do not like it

      You basically have to split n into more smaller powers of 3 than larger powers. now, observe n in base3 format, you can see how it is split into powers of 3. in order to use more smaller powers more, try transferring powers from msb to lsb. when we are using smaller powers, it requires more deals. so keep track of how many are used.

      334931987 this is my submission, i used binary search just because i was lazy to think the math.

  • »
    »
    9 months ago, hide # ^ |
     
    Vote: I like it +1 Vote: I do not like it

    C2 almost killed me..........

  • »
    »
    9 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    I actually solved it from bottom to top after failing to get the straightforward solution to work. Starting from $$$n$$$ deals for only one watermelon, I merged them into greater ones with regard to maximum possible merges for a given digit.

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

How did it went guys?

For me since I am a newbie I wasted all the time on 1st two problems.

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

WHY DOES MY SOLUTION FOR C2 WA ON TEST 5...AAAAAAAAHHHHH

»
9 months ago, hide # |
 
Vote: I like it +7 Vote: I do not like it

digitforces

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

How to solve D?

Can anyone please explain the approach??

»
9 months ago, hide # |
 
Vote: I like it +10 Vote: I do not like it

Very very great contest! Just a little bit harder than its name

Also I was ranked 800 until 25 minutes before the end and now I see I'm 1900! How is that possible?

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

so bad contest as Div3 contest. i show that it was should be rated as Div2.

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Worst problemset >>>

  • »
    »
    9 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    True. The main part of problem D can be found on Google, and people who copied from there won't be skipped. The statement of problem A describes the algorithm itself, quite contrary to codeforces problem statements. I didn't enjoy this round like previous contests.

»
9 months ago, hide # |
Rev. 2  
Vote: I like it -11 Vote: I do not like it

Does this code solves C2? i couldn't submit it because of debugging:

#include <bits/stdc++.h>
using namespace std;
#define int long long

//dort boler alti arti iki ama ne boler alti ne boler iki
map<int,int> mp;
pair<int,int> f(int n) {
	
	int x = 1;
	int cnt = 0;
	while(x * 3 <= n) {
		
		x *= 3;
		cnt++;
	}
	return {x,cnt};
	}
	
int bul(int x) {
	int cnt = 0;
	while(x > 1) {
		cnt++;
		x = x / 3;
	}
	return cnt;
	}
int32_t main() {
	int t;
	cin >> t;
	while(t--) {
		priority_queue<int> pq;
	int n,k;
	cin >> n >> k;
	int mefe = n;
	int ans = 0;
	int cnt = 0;
	int mx = 0;
	vector<int> a;
	while (n > 0) {
		cnt = cnt+1;
		int x = f(n).first;
		int bu = f(n).second;
		pq.push(x);
		a.push_back(x);
		mp[x] = x*3 + bu*(x/3);
		ans += x*3 + bu*(x/3);
		n -= x; 
		
	}
	//cout << cnt << endl;
	if(cnt > k) cout << -1 << endl;
	else if(k >= mefe) cout << mefe*3 <<endl;
	else {
		
		if (cnt < k-1) {
		
		while(cnt < k-1) {
			
			if(pq.top() == 1) break;
			int x = pq.top();
			ans -= mp[x];
			pq.pop();
			if(mp[x/3] == 0) {
				int b = bul(x/3);
				mp[x/3] = x + b*(x/9);
				
			}
	ans += 3 * mp[x/3];
	pq.push(x/3);
	pq.push(x/3);
	pq.push(x/3);
		
	cnt = cnt + 2;
}
//ans--;
}
	cout << ans <<endl;
}
}
	return 0;
}


»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

please tell me where to hack others code?I hadn't use this function before.Thanks

»
9 months ago, hide # |
 
Vote: I like it -8 Vote: I do not like it

I don’t like pD It’s so annoying

»
9 months ago, hide # |
 
Vote: I like it +17 Vote: I do not like it

Guys!! I have attended in a math olympiad for the first time in my life. Thanks for the Contest !!

»
9 months ago, hide # |
Rev. 2  
Vote: I like it +19 Vote: I do not like it

F and G are entirely cobbled together by forcing multiple different templates. It's really extremely boring to set such questions.

»
9 months ago, hide # |
 
Vote: I like it +12 Vote: I do not like it

I got negative delta on this contest because while doing one of the problems, I saw a picture of the newly revealed mega victreebel (pic below) and could not properly debug my code while laughing for 45 minutes.

»
9 months ago, hide # |
 
Vote: I like it +1 Vote: I do not like it
»
9 months ago, hide # |
 
Vote: I like it -8 Vote: I do not like it

Something like digit DP seems to be too complicate for a problem D. Do you have any simple solution?

»
9 months ago, hide # |
Rev. 2  
Vote: I like it +10 Vote: I do not like it

My god, problem $$$D$$$ is implementation hell. I got the idea quickly of binary search and we can use Digit DP to find sum of digits of numbers in a range, but was not able to complete the implementation in time :(

»
9 months ago, hide # |
 
Vote: I like it +11 Vote: I do not like it

problem D is awful

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I'm trying to solve D and going as far as:

  • got the k when n is 10**x
  • got the digit sum when n is 10**x
  • with k what is the current digit

But to figured what is the exact sum with k is some number is still doesn't quite there yet, can someone teach me how to approach similar problem more efficiently?

  • »
    »
    9 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    You first need to see how many numbers this sequence has For example, you can start by subtracting 9 from k, then 90*2=180, then 900*3=2700, etc., and finally, with a little attention to detail, you get the number of numbers After that, you can easily solve it (you can search for the sum of the digits of numbers 1 to n on Google) Also, the last number, which only needs to be calculated for some of its digits, must be calculated separately

    • »
      »
      »
      9 months ago, hide # ^ |
       
      Vote: I like it 0 Vote: I do not like it

      ah right I forgot with what I have is the number digit of n, so at that point I can figured the digit = number of cycles count...

      I just suck at digit DP stuff

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

This contest really humbled me

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

div3 or div2 + div3?

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

What?

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Damn ABC were instant solves, I'm really slow at reading problems though and this was the first time I could actually read through all the problems in the contest within the duration. Definitely getting some elo on this one!

»
9 months ago, hide # |
 
Vote: I like it +10 Vote: I do not like it

Cheers to ChatGPT!!

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

MathForces

»
9 months ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

C1 was easier than B. C2 was a really good problem.

I think most of the downvotes on this blog are because of the math heavy problems from B to D.

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

YAY

MY PRAYER HAS BEEEEN A/C

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I understand that we shouldn't make problems and then only take the ones that are not solvable by AI, that takes all the fun out of it.

But this cheating situation is getting worse day by day, so I suggest authors do that to prevent cheating to at least some extent.

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Please do not organise any contest again! here is not math class!

»
9 months ago, hide # |
Rev. 4  
Vote: I like it 0 Vote: I do not like it

Almost every newbie, pupil, specialist of top 100-200 have one or more than one AI code. Why CF are not banning them, why only skip their solution. If a person cheat this time, and you only skip his solution, next time he will make sure that his code looks like more human written.

And I do not understand the mindset of these Indian college students. Every where I see most of them are Indian engineering students. Bro, you might get a job by cheating, but you won't survive in the culture. Every day companies are laying off people, you might get one job easily by cheating, but for other job you will struggle a lot. Even some companies are moving to in-person interviews because of cheating. Stop doing cheating, and start studying.

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Practice is allowed only for finished and unfrozen contests. Why is this being shown while submitting?

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

hi i am newbie at coding. For C2 i cant observe that i should greedily take form big deal to small deal or small deal to big deal. Also i dont understand how to make a condition skip the necessary deal greedily, and is it possible that only see N and K then can figure it out is -1 or not. For D i dont have any idea about how to find the sum, is that have a general equation for that or just exhuastion. i am trying improve my coding skill :(

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I read the comment section, many people are complaining about it being hard, but it was the easiest contest i have so far,this is the first time i was able to solve 3 Problem(A,B,C1) for the first time

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Actually that was my first contect and i accepted a qouestion in a contest , maybe i'm so excited maybe beacuze i'm nob in CP but i had fun yesterday. Thank you.

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Why are the ranks shown in friend and common standings different ?

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

when will rating be applied?

»
9 months ago, hide # |
 
Vote: I like it +2 Vote: I do not like it

Dudes were too lazy to make a contest, so they just gave us a math exam instead.

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

In C1

vector <long long> cost;
    long long c = 3;
    long long cnt = 1;
    for (int i = 0; i < 21; ++i) {
        cost.push_back(c);
        c = 3 * c + cnt;
        cnt *= 3;
    }

why this code is calculating the cost for each 3^x correctly? The formula was 3^(x+1) + x * 3^(x-1) but we aren't using this. For more please see editorial.

  • »
    »
    9 months ago, hide # ^ |
    Rev. 2  
    Vote: I like it 0 Vote: I do not like it

    Let f(x) denote the formula. Expand the expression of f(x + 1). It can be proven that f(x + 1) = 3 * f(x) + 3^x if you replace x with x + 1 in f(x).

  • »
    »
    9 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    Let $$$C(x)$$$ be the cost of $$$3^x$$$ watermelons, then

    $$$C(x+1)=3^{x+2}+(x+1)\cdot 3^x=3^{x+2}+x\cdot 3^x+3^x=3\left(3^{x+1}+ x\cdot 3^{x-1}\right)+3^x=3\cdot C(x)+3^x$$$

    is the required recurrence relation

  • »
    »
    9 months ago, hide # ^ |
     
    Vote: I like it +1 Vote: I do not like it

    Here is the proof, hope it help (you have to do tricks such as add 0 and multiply by 1)

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

How does the standing system work? It shows that my official common standing is 3372 yet in the contest section in my profile, my rank is displayed to be 4517.

  • »
    »
    9 months ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    The official standings only contain trusted participants (who participated in 5+ rated rounds). For rating calculation, every participant whose rating is below 1600 is considered, regardless of trusted or not. The rank shown in your profile page is the position among the latter set of people.

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

How to become specialist? I am practicing a lot here and much more in other platforms....Can anyone guide? And also please guide me for dynamic programming.

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

def wasn't a div 3.

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

hey, can you guys upvote me for the first time?

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

This was one of the most math based contest I've ever participated in. A total math marathon..

B was interesting and fun, idk how but I just figured it out!! D was not very hard, pretty smooth solve C2 almost killed me

»
9 months ago, hide # |
Rev. 5  
Vote: I like it 0 Vote: I do not like it

E submission

my solution is based on counts of a and b . and after seeing others submission i feel i think too question oriented not in a general way.

how to improve that???

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

E submission

my solution is based on counts of a and b . and after seeing others submission i feel i think too question oriented not in a general way.

how to improve that???

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Actually this message to the system that was a coincidence of code.No problem sometimes misunderstanding make it to suspect.Thank you codeforces.

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Dear Codeforces Team,

I am writing to respond to the notice about my solution (ID: 334878052) being similar to others. I want to clearly say that I did not cheat and did not share my code with anyone.

I created the solution by myself. I first thought through the main ideas on paper and made sure they were correct before writing any code. For testing, I used an online compiler (GeeksforGeeks compiler and some time other online IDE also), which I have done before in past contests. Now I understand that using such websites might make my code visible to others, which could explain the similarities. I feel really sorry about this mistake.

I want to make it clear that I never meant to break the rules. From now on, I will only use my local computer for writing and testing code to avoid any such issues in the future.

I apologize if this situation has worried anyone, and I hope you can consider my explanation. I care a lot about the fairness of competitive programming and the Codeforces community. I am committed to following the rules and maintaining the standards of this platform.

Respectfully, abhi00100 2132E - Arithmetics Competition Codeforces Round 519 by Botan Investments

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Hello codeforces the page in which I have solved problem C is losted . If I have that page then I can give you evidence but now I don't have.I am pretty sure about that this was a coincidence.

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Hello, I want to respectfully clarify my situation regarding my solution (submission: 334934057) for problem 2132E.

The solution I submitted is completely my own work, The approach is quite standard for this type of problem:

  1. Sort both arrays in descending order.

  2. Precompute prefix sums for both arrays.

  3. For each query, determine the valid range of elements to take from array A vs. B.

  4. Use a ternary search over that range to maximize the sum.

This is a very natural and common method to solve such problems. since the logic is straightforward and competitive programmers are often trained to use prefix sums + search (binary or ternary) in optimization problems, it is not surprising that multiple participants may arrive at very similar code.

I did not share my solution with anyone, nor did I copy it. Any similarity must be coincidental, caused by the fact that the standard solution path for this problem is quite constrained and leads to almost identical implementations.

I kindly request that you reconsider penalizing my submission. I value the integrity of Codeforces competitions and would never intentionally break the rules. I will also take extra care in the future to avoid even the appearance of similarity.

Thank you for your time and understanding.

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Hello, I received multiple plagiarism warnings for Codeforces Round 1043 (Div. 3), for problems C1, C2, D, and E.

I want to sincerely apologize for violating the contest rules. I did share my solutions during the contest, and I now fully realize that this was a serious mistake that affected the fairness of the competition.

This was my first time making such a mistake, and I take full responsibility. I deeply regret it and assure the community and the Codeforces team that I will never repeat this behavior.

I value the Codeforces platform and contests, and I hope to be allowed to continue participating while strictly following the rules going forward.

— Harilaxman

»
9 months ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

I sincerely apologize for my grave error in participating in contest 2132 using two of my accounts, Shreya_02 and Sleepybear9. I now fully understand that this was a serious violation of the rules, and I take complete responsibility for my actions.

This was a deeply regrettable oversight on my part, and I assure you it was not done with any malicious intent to gain an unfair advantage. I recognize that maintaining the integrity and fairness of the competition is paramount, and my actions have compromised that.

I have learned a valuable lesson from this experience. I am committed to adhering strictly to all contest rules going forward, and I will be much more vigilant to avoid any potential for a similar situation.

I kindly request that you consider my heartfelt apology and reconsider the penalty on my submission. I genuinely value the Codeforces platform and its community and am dedicated to being a respectful and rule-abiding participant.

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Hello @thetwoface this side, i participated in Codeforces Round 1043 (Div. 3), and now it was showing that my answer matches with someone whom i don't have any clue. Infact i don't even know him/her. Please do not skip my all problems of this round. I maintained the dignity and solved with the my intuition. There could be a chance of coincidence as well and for that i am not solely responsible for. My submbission ID 334922375 has been skipped along with all other submission please keep it back. Hope that makes a difference. Thankyou Peace!

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Hello Codeforces team,

I recently received a notification regarding a rules violation due to a significant similarity between two submissions: one from my account Tukabbir and another from Sailor. I want to clarify that both accounts belong to me. I was unaware that participating in the same contest using multiple accounts is strictly against the rules. This was not an attempt to gain an unfair advantage, but rather a misunderstanding of the platform’s policies.

I sincerely apologize for this oversight and take full responsibility. I’ve read the rules more carefully now and understand the seriousness of the issue. I will ensure that I only use one account (Sailor) for all future contests and interactions on Codeforces.

Thank you for your time and understanding.

— Tukabbir

»
9 months ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

Dear Codeforces team, I received a warning for suspected similarity on problem 2132C2. I want to clarify that I wrote this solution completely on my own without sharing or copying. It was a coincidence that imansh and siddhu007 submitted a similar approach. I think the problem is with the edge case which is same but in this question I think it would be prevalent that's why it happened . I sincerely respect Codeforces rules and would never intentionally break them. I kindly request you to please review this warning again and consider removing it from my account. It affects my profile integrity, and I assure you that I always code honestly.

Thank you very much for your understanding and for maintaining a fair competitive environment. --VSS103056_MAyyanNB12

»
9 months ago, hide # |
Rev. 3  
Vote: I like it 0 Vote: I do not like it

plz dont cheat r8848_ 4th plag already!!! , codeforces administrators please see this account.

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Got a TLE on the 4th problem with only 7 minutes left. Replaced a nested while loop with an O(1) arithmetic trick and got #Accepted just 3 minutes before the final whistle. Siuuu... #Codeforces