Блог пользователя hot-coco

Автор hot-coco, история, 10 месяцев назад, По-английски

Just started solving questions on Codeforces recently. Initially some questions did overwhelm me, but yeah took my time and when that was not enough, I wrote down all the cases on a paper, looked at the editorial, understood the logic and wrote a different brute code by myself.

I have currently solved around 60 questions in the past few weeks, I have build some confidence and I don't get overwhelmed by seeing a problem. Goal is to reach Specialist by september. what do you say, is it possible?

  • Проголосовать: нравится
  • -21
  • Проголосовать: не нравится

»
10 месяцев назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

Well, I must say it will be very difficult to achieve. But anyway, wish you all the best!

»
10 месяцев назад, скрыть # |
 
Проголосовать: нравится +4 Проголосовать: не нравится

I saw your profile, considering you still can't solve B problems of Div3, I'd say specialist is very unrealistic target. Depending on the time you have you can reach pupil though. Best of luck anyways.

»
10 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Problem != Question.

»
10 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I just wanna say that practice , practice is only it takes I am following that u must follow to...

»
10 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится
#include <bits/stdc++.h>
using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int t;
    cin >> t;
    while (t--) {
        long long k, a, b, x, y;
        cin >> k >> a >> b >> x >> y;

        long long count = 0;

        // Prioritize the one with smaller decrement
        if (x > y) {
            swap(a, b);
            swap(x, y);
        }

        // First cook as much as possible with the better option (less decrement)
        while (k >= a) {
            k -= x;
            count++;
        }

        // Then cook the other one if still possible
        while (k >= b) {
            k -= y;
            count++;
        }

        cout << count << '\n';
    }

    return 0;
}

is this one also your own code which is copied i mean written by you?

»
10 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

no

»
10 месяцев назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

looking at the ratings of the questions you solved, you might reach pupil, but specialist might be difficult at this time, but gl!