Блог пользователя FelixArg

Автор FelixArg, история, 22 месяца назад, По-русски

Привет, Codeforces!

Это был долгий путь, и я, наконец, рад пригласить вас поучаствовать в нашем Codeforces Round 955 (Div. 2, с призами от NEAR!), который пройдет в 25.06.2024 17:35 (Московское время).

Он будет рейтинговым для всех участников, чей рейтинг будет ниже 2100. Участники с более высоким рейтингом могут принять участие вне конкурса.

На раунде вам нужно будет решить 6 задач. У вас будет 2 часа на их решение.

Задачи для раунда вместе со мной готовили nik1998, egor4444ik и iamdimonis.

Мы от всей души хотим поблагодарить всех, кто оказал бесценную помощь в подготовке этого раунда:

Мы рады сообщить, что компания NEAR поддержала проведение раунда!

NEAR была основана в 2017 году Ильёй Полосухиным, одним из создателей технологии трансформеров, и Александром Скидановым как попытка создать систему, которая бы решала задачи по спортивному программированию. О том, что получилось тогда, можно почитать здесь.

В итоге NEAR сделала большой поворот на 180° и начала работу над протоколом блокчейна, который запустила в 2020 году.

В этом году NEAR сформировала новую лабораторию, NEAR.AI, задача которой — создание будущего, в котором технологии искусственного интеллекта открыты и доступны всем, а не контролируются небольшим количеством мега-корпораций.

Одним из направлений работы является обучение моделей мыслить рационально, и задачи по спортивному программированию — это отличное окружение для этой задачи. В этом контексте NEAR приглашает всех русскоязычных участников Codeforces с рейтингом 1400 и выше помочь нам описать решения задач по спортивному программированию. Мы хотим описать решения большого количества задач разной сложности и платим за это сравнительно большое количество NEAR.

Присоединиться к системе можно будет за два дня до контеста по этой ссылке.

Помимо этого, в раунде предусмотрены призы, не связанные с этим приглашением. Участники, занявшие места с первого по 16-е в объединенном зачете (то есть включая неофициальных участников), получат по Ⓝ 16, следующие 32 участника — по Ⓝ 8, следующие 64 — по Ⓝ 4, следующие 128 — по Ⓝ 2, и еще 256 — по Ⓝ 1.

Помимо этого, 64 случайных участника из первых 4096 в объединенном зачете получат еще по Ⓝ 4.

Разбалловка: $$$500\,—\,1000\,—\,1000\,—\,1750\,—\,2500\,—\,3000$$$

Желаем всем удачи и высокого рейтинга!

UPD: Давайте продолжим серию анонсов с фотографией авторов :)

UPD 2: Разбор!

UPD 3: Поздравляем победителей!

Div 1:

  1. tourist

  2. jiangly

  3. SSerxhs

  4. kizen

  5. potato167

Div 2:

  1. lunchbox

  2. _JiaY19_

  3. gxy001

  4. _DongY19_

  5. Muelsyse_sep005

UPD 4: Замечательный видео разбор задач A-E. Спасибо, Shayan!

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

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

Just curious, are the prizes based on full ranking or just official/Div.2 ranking only?

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

I think this contest will be so interesting and exciting! Thanks in advance to them who organizated this contest, and of course thanks to company NEAR for supporting this contest!

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

Could someone please explain what's Ⓝ in the prizes?

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

Is anyone going to pull a rainboy?

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

Hello everyone, hope to reach CM in this round

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

As a tester vodacbaoan is genius

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

December 2023: "AlphaCode 2 is worth a gazillion specialists, competitive programming is done for!"

Fast-forward to present day six months later: "Sup nerds, wanna annotate some problems?"

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

This round will be rated for all participants with a rating of 2100 or below.

I am 2100 and I can’t register officially :(

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

Hey Authors

I'm curious to know all your ages/experience? since it's great to find people with 2-3 years of experience building contests!!

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

As a tester problems are really interesting and challenging!

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

As a tester, I literally tested just now because the coordinator invited me to test a few hours ago.

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

I will come back after a long time not participating in contests

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

OMG! Another FelixArg round.

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

The expression on the face of boys explain how dangerous their mind is.

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

What is meant by blue testing, purple testing, etc...?

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

i remember you guys removed 24-word seed restore in the default web wallet and my near coins were gone, very funny. then someone told me i have to paste it in the url to restore it. please be careful about backwards-compatibility, would hate for the new ai to suddenly vanish. looking forward to nearcrowd round 2!

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

weird score distribution, I've never seen 1000 point div2c

thinking speedforce, unless upsolve D of course.

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

64 random participants from the top 4096 in the overall ranking will each receive Ⓝ 4, that means we have a 1.5625% chances of becoming rich! All the Best!!

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

interesting score ditribution

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

Can someone help me ? How am i supposed to change my compiler from c++14 to c++20 (in my own laptop) ?

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

is there any penalty?

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

Contest is NEAR!

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

Me after solving D : (^_^) Checking standings afterwards : (o_o)

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

nice tasks, 2k submissions on D wow

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

B > C

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

Animated Video editorial for problems [A-C]:

https://youtu.be/-btzjr-u4dM

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

problem D must have something to do with 2D prefix and maybe some gcd yes? I believe

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

C<<<B

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

Can someone tell how to solve D?

My thought process for D : Find net difference between two types of mountains, this will give the value to increase. Now in each kxk submatrix, find difference between the number of two types of mountains : this will give the amount we can increase or decrease. And then I couldn't proceed further.

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

    That's correct. Then you can use GCD to figure out whether you can sum the list of kxk difference into mountain_diff.

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

    The difference should be a linear combination of the amount you can increase by each of the k*k matrices. Hence, it should be divisible by their gcd.

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

    same, my approach was to first calculate sum of ones and zeros and get difference between them , now create prefix 2d array to store count/(difference between them) of ones and zeros in a matrix then for all possible matrix if dimension kxk save difference between one,zero in an array so now my problem boils down to classic Coin Change DP(with infinite coins of each arr[i]),but it takes O(sizeofArray*Sum) probably TLE

    any hints please ??

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

    Suppose the difference of the numbers of each type of mountain is $$$k_1,\dots,k_\ell$$$. Recall from number theory that the only numbers we can form as a $$$\mathbb{Z}$$$-linear combination of integers $$$k_1,\dots,k_\ell$$$ (i.e. $$$c_1k_1+\cdots+c_\ell k_\ell$$$ for integers $$$c_i$$$) are multiples of $$$\gcd(k_1,\dots,k_\ell)$$$. Therefore, if the difference is some multiple of the $$$\gcd$$$ of all the $$$k_1,\dots,k_\ell$$$, then there is some series of moves we can do to get the difference to zero (plus some edge cases where some/all of the $$$k_i$$$'s are zero).

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

    You can find the net difference in all $$$K \times K$$$ submatrices and let gcd of these differences be $$$G$$$. It can be proven that you can only change the total height difference by some multiple of $$$G$$$, therefore you only need to check if the height difference is divisible by $$$G$$$.

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

How to do B?? Spent more than an hour and couldn't solve it.

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

So you've really decided to use the $$$3 \cdot n + 1$$$ problem in a contest? I'm really salty right now if you didn't notice.

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

even though i couldn't solve it, i feel that C is much easier than B. From the One's I've read, A-C. I can say that the problems were very interesting and I think i would enjoying upsolving them.

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

    The trick to B is to try to simulate the operations and output the x values as it changes, then it becomes apparent that it starts looping between 1 and y-1 when x reaches a value equal to y or less. And to get to that point you just perform as many operations as you need to get x to the next multiple of y but you don't actually need to add 1 every time just find the next multiple of y and do all the ops at once

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

B was very hard for people who aren't that good at math. :(

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

Why are all the A's getting hacked..?

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

Thanks for the contest. I got my lesson. I wont give any contest from now on which has the word TrAkToR in its description.

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

Why so many hacks on A? (observing those on page 1 of standings)

»
22 месяца назад, скрыть # |
Rev. 8  
Проголосовать: нравится +15 Проголосовать: не нравится

A: If the sign of (x-y) changed, then (x-y) must be 0 at some time, so answer is NO. Otherwise, the answer is YES.

B: If x<y, then the value of x will change among {1, 2, ..., y-1} periodically, so the answer will depend on k%(y-1). Otherwise, after (y-x%y) operations x will become (x+y-x%y)/y, which is not greater than (x/y)+1. Because y>=2 this can happen not more than log(x) times until x<y, so we can simulate the process in O(log(x)).

C: Let dp[i] be the anwser for first to i-th cards. We can binary search for the largest j such that sum(j+1, i)>=l, if sum(j+1, i)<=r we have dp[i]=max(dp[i-1], dp[j]+1), otherwise dp[i]=dp[i-1].

D: Let the balance of heights B=(sum of snowy heights)-(sum of not-snowy heights). If B==0 initially the answer is YES. If we let c[i][j]=1 when (i, j) is snowy, c[i][j]=-1 otherwise, then when we do operation on a k*k square, the change of balance will be sum(i,j)(c[i][j]) where (i,j) is in the square. So we can calculate the sum of c[i][j] over all k*k submatrices using 2D prefix-sum, and by the bezout's theorem, the change of balance can be any multiple of GCD of these sums. In order to make B=0, the initial value of B must be the multiple of GCD.

E: First think about case for n=2**d. If k>=d the answer is n*(n+1)/2, and if k==d-1 the answer is (n-1)*n/2, let's assume k<=d-2. We can see the answer is sum(1<=r<=k+1)((2**r-1)*(2**r)/2 * C(d-r-1,k+1-r)). Denote this as f(d, k).

Proof

Now think about arbitrary n. We can split [0, n) into several intervals with length of 2**j, where n has the j-th bit. If we let L=floor(n/2**(j+1))*(2**(j+1)), R=L+2**j, the answer on interval [L, R) will be f(j, k-popcount(L)). If popcount(R-1)>k, there will be no valid interval containing both R-1 and R, so we can add this to the answer and consider for [R, n) seperately. Otherwise, when popcount(R-1)<=k, we can see that for any R<=x<n we have popcount(x)<=k, so we can add (n-L)*(n-L+1)/2 to the answer.

F: Let L be the minimum i such that a[i]>a[i+1], R be the maximum i such that a[i-1]>a[i]. Then at least we need to sort subarray [L, R]. Let X=min(L<=i<=R)(a[i]), Y=max(L<=i<=R)(a[i]), if there are any L1<L such that a[L1]>X or any R1>R such that a[R1]<Y, then we also need to sort them. To find L,R we can maintain a set S={1<=i<n: a[i]>a[i-1]} which can be modified in O(log(n)) each operation. To find X,Y we can use a segment tree, and to find L1, R1 we can use binary search on a[i].

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

Who can prove D?

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

Wrote a overcomplicated DP + Segment Tree solution for C. D was a good problem.

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

In fact, I think that question C is much less difficult than question B, and I was thwarted by question B for forty minutes but passed C in ten minutes.

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

Can anyone teach me how to past B problem?

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

    When $$$x$$$ will become less than $$$y$$$, there will be a cycle: $$$x$$$, $$$x+1$$$, ..., $$$y-1$$$, $$$1$$$, $$$2$$$, ..., $$$x-1$$$, $$$x$$$, which cost $$$y-1$$$ moves, so you just take $$$k$$$ modulo $$$y-1$$$ after $$$x$$$ will become less than $$$y$$$.

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

Lol, i just read F and isn't it just much much easier, than D and E? It took me like five minutes to come up with the solution.

»
22 месяца назад, скрыть # |
Rev. 3  
Проголосовать: нравится -16 Проголосовать: не нравится

Can anybody please help me understand the problem with my code for problem C(Boring days) ~~~~~

signed main() { ll t; cin >> t; while(t--) { ll n,l,r; cin >> n >> l >> r;

vector<ll> a;
  for(ll i=0;i<n;i++) {
    ll x;
    cin >> x;
    a.push_back(x);
  }

  ll i = 0;
  ll j = 0;
  ll sum = 0;
  ll count = 0;

  while(j<n){
    sum+=a[j];
    if(sum<l){
      j++;
    }
    else if(sum<=r and sum>=l){
      count+=1;
      i = j+1;
      j++;
      sum = 0;
    }
    else if(sum>r){
      while(sum>r){
        sum-=a[i];
        i++;
      }
      if(sum<=r and sum>=l){
        count+=1;
        i = j+1;
        j++;
        sum = 0;
      }
      else{
        i = j+1;
        j++;
        sum = 0;
      }
    }


  }

  cout << count << endl;

}

}

~~~~~

  • »
    »
    22 месяца назад, скрыть # ^ |
     
    Проголосовать: нравится -25 Проголосовать: не нравится

    bro, your final else block is the problem, its the same as if block

    include <bits/stdc++.h>

    using namespace std;

    typedef long long ll;

    signed main() { ll t; cin >> t; while(t--) { ll n,l,r; cin >> n >> l >> r;

    vector a; for(ll i=0;i<n;i++) { ll x; cin >> x; a.push_back(x); }

    ll i = 0; ll j = 0; ll sum = 0; ll count = 0;

    while(j<n){ sum+=a[j]; if(sum<l){ j++; } else if(sum<=r and sum>=l){ count+=1; i = j+1; j++; sum = 0; } else if(sum>r){ while(sum>r){ sum-=a[i]; i++; } if(sum<=r and sum>=l){ count+=1; i = j+1; j++; sum = 0; } else{ j++; //only change } }

    }

    cout << count << endl; }

    }

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

267409135 Can anyone tell me why is this not working? Like is my logic completely wrong or is there some edge case that the code misses?

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

Hello everyone, I need somebody to hack my friend's code: https://mirror.codeforces.com/contest/1982/submission/267413232

I am so sure that His code will overflow since he just used 32bits integer (int / i32). Hurry up! Don't let him discover it! Just hack the submission!

PS: His computer's battery has run out and I submitted his code after contest. But why it AC!!!!! I cannot accept it!!!!!

Thanks!


Update:

Sorry, his code is correct. Just sum up all the "-1" and "+1" will not exceed i32. My bad! Actually, he cannot submit his code since the battery problem, I want to easy him that his code maybe cannot pass the test (So that he will not lose this big chance to increase his rating). Okay...... Now he will be definitely very sad and regretful.

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

Is filling "TON wallet" field (and "Secret Code") with account id from mynearwallet in settings enough for getting reward in NEAR cryptocurrency for current round? Or what should I do to get it?

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

I did surprisingly well in this round. This was a really fun one, questions were not very straightforward, I liked it a lot.

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

My rating is 1110.I participated in this contest. But my rating not changed.Why?

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

Till now i was happy that i became specialist but all of a sudden ratings changes is disappeared, can i know what's the reason behind it?

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

Subject: Issue with Judgement in Problem C

Hi,

I encountered a possible error in the judgement of my submission for Problem C during Codeforces Round 955 (Div. 2). It seems there was a bug during the judging process.

Details:

My Submission During Contest: Submission 267358679 My Submission After Contest: Submission 267429867 During the contest, in the 2nd pretest, 6th test case, my submission was judged incorrectly. The actual output should be 0, but it was judged as 1, resulting in a wrong submission.

After the contest, I resubmitted the same solution, and it was judged correctly with the output being 0.

I would appreciate it if the issue could be reviewed and corrected as it affected my contest standing unfairly.

Thank you for your attention.

Best regards, Deshik conan45

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

I have one question for the cf community, why to give the score distribution beforehand, people can initially guess the difficulty of the contest, isn't it non exciting it would be more fun if we are not known that and may be we can keep it constant in every contest

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

FelixArg , My solution for D shouldn't have passed the test cases, but it did.

  • I knew the current difference between type1Sum, and type0Sum. ( let's call it RequiredDifference )

  • I knew for each of the sub-rectangle of size k*k, what are achievable differences. Lets call them (d1, d2, d3 ... dk).

I knew that I had to do a1 * d1 + a2 * d2 + a3 * d3 + ... ak * dk = RequiredDifference

I didn't know how that gcd ( d1 , d2 ... dk ) | requiredDiff .

But I knew, for ax + by = z , then gcd(x, y) | z. So I used this two variable equation property and passed test cases. Refer to my solution.

The test cases were weak for D. Ideally my solution shouldn't pass. It was later hacked by djm03178 .

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

So many people here are saying that B was a lot difficult than C. I did B in 20 mins, but it took me almost a day and more than 10 attempts to finally get AC on C. I had actually figured it in some time but it was giving TLE again and again. Don't know if I am too dumb or too smart lol!!

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

Exposing Cheating in Competitive Programming Cheating undermines the spirit of competitive programming. The Telegram channel selling Codeforces solutions, with Gautam_Himanshu implicated in using these solutions to unfairly boost their ranking. This not only disadvantages honest participants but also erodes the platform's credibility. The community must stay vigilant, report suspicious activities, and promote ethical practices. By addressing such issues, we can ensure a fair and rewarding environment for all. Let's work together to uphold the values of integrity and fair play in competitive programming. Report any evidence of cheating to maintain our community's standards.

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

Creating: .cfuser.near.

Transaction to create the account was sent, but the account is not on chain yet. Please refresh the page. If the problem persists, please reach out to the admins

Can you please help me?

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

Even though I ate negative delta the problems were very good, I enjoyed the round so much.

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

Hey folks! Here's an attempt of an explanation of problems A to D of this context with Tourist's codes https://www.youtube.com/watch?v=3fPvRAowuqU. Would be glad if you find it informative!

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

How do I redeem the 1N prize? Sorry, this is the first time I've won something in an online contest, so I don't know how to redeem stuff. Thanks in advance for the reply!

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

    I have the same question. And how do I determine if I have won a prize(because of unofficial participation)? Should it be a message, or other forms?

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

      I saw your rank, I think you are also eligible for the reward. They said unofficial participators will also be able to claim rewards. Ranking under 496 (including 496th rank) should be enough. I saw something in the settings->Wallet section (but it is only visible in Russian language). But I still don't know how to claim it. If you find out, please let me know too :D

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

        OK,thank you, maybe you have noticed, the form for filling out the award information has been sent out by the system about 5 days ago.(You can see it in "talks" page, which is near the position of your profile)

        I wrote this in case that you missed it. Please note that the DDL is 7.8 24:00 :)

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

Dear Codeforces Team,

I recently received a notification regarding a significant coincidence between my solution for problem 1982B (solution ID: 267384934) and the solutions submitted by Muhammad_Tawfiq (solution ID: 267384934) and Antartic_Nafeez (solution ID: 267386858). I take such matters very seriously and would like to address this situation promptly.

Firstly, I would like to clarify that my intention has always been to adhere to the rules and maintain the integrity of the competition. I assure you that I have not intentionally shared my code with anyone nor copied from other contestants.

To provide more context:

  1. Code Review: I have thoroughly reviewed my code and confirmed that it is my own work. However, I understand that similar solutions can sometimes arise due to common approaches to solving the problem.

  2. Use of Public Platforms: I have not used public platforms like ideone.com with default (public) settings to share my code. All my code is developed locally or on private, secure platforms.

  3. Potential Common Source: If there was any unintentional similarity due to a common source or widely known algorithm published before the competition, I am more than willing to provide details of my references and thought process.

I request a thorough review of this case and am ready to cooperate fully by providing any additional information or evidence required. My goal is to clear up any misunderstandings and continue participating in Codeforces competitions fairly.

Thank you for your attention to this matter.

Best regards,

[Muhammad_Tawfiq]

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

Hello Codeforces,This is in regard to plagiarism being put on one of my solutions. I want assure you that no such incident has been done by me the only common issue can be a code template i use for some questions .You can check all my previous contests and submissions.This was the first time i used this template seeing many other use a template of their own.If unintenionally I have made a mistake I apologize and assure that i wont be using templates as well from now on

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

seems everyone has received plagiarism message

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

How long do the rollbacks take? I need to submit my resume with a screenshot of rating as proof in 4 hours:(

»
22 месяца назад, скрыть # |
 
Проголосовать: нравится -8 Проголосовать: не нравится
/*
*    Author: Arjit Khare
*    Created: Friday, 28.06.2024 12:30 AM (GMT+5:30)
*    linkedin: https://www.linkedin.com/in/arjitkhare/    
*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define mod 1000000007

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    #ifndef ONLINE_JUDGE
        // freopen("input.txt", "r", stdin);
        // freopen("output.txt", "w", stdout);
    #endif
    int t;
    cin>>t;
    while(t--){
        int n, m, k;
        cin>>n>>m>>k;
        vector<vector<int>> land(n, vector<int>(m));
        for(int i = 0; i < n; i++)
        {
            for(int j = 0; j < m; j++)
            {
                cin>>land[i][j];
            }
        }
        vector<string> s(n);
        for(int i = 0; i < n; i++)
        {
            cin>>s[i];
        }
        //{snow, nonSnow}
        vector<vector<int>> snow(n, vector<int>(m));
        vector<vector<int>> nonSnow(n, vector<int>(m));
        for(int i = 0; i < n; i++)
        {
            for(int j = 0; j < m; j++)
            {
                if(i == 0)
                {
                    if(j == 0)
                    {
                        snow[i][j] = 1*(s[i][j] == '0');
                        nonSnow[i][j] = 1*(s[i][j] == '1');
                    }
                    else
                    {
                        snow[i][j] = snow[i][j-1] + 1*(s[i][j] == '0');
                        nonSnow[i][j] = nonSnow[i][j-1] + 1*(s[i][j] == '1');
                    }
                }
                else if(j == 0)
                {
                    snow[i][j] = snow[i-1][j] + 1*(s[i][j] == '0');
                    nonSnow[i][j] = nonSnow[i-1][j] + 1*(s[i][j] == '1');
                }
                else
                {
                    snow[i][j] = snow[i-1][j] + snow[i][j-1] - snow[i-1][j-1] + 1*(s[i][j] == '0');
                    nonSnow[i][j] = nonSnow[i-1][j] + nonSnow[i][j-1] - nonSnow[i-1][j-1] + 1*(s[i][j] == '1');
                }
            }
        }
        // set<int> nums;
        int common = 0;
        for(int i = k-1; i < n; i++)
        {
            for(int j = k-1; j < m; j++)
            {
                int curr;
                if(i == k-1)
                {
                    if(j == k-1)
                    {
                        curr = snow[i][j] - nonSnow[i][j];
                    }
                    else
                    {
                        curr = (snow[i][j] - snow[i][j-k]) - (nonSnow[i][j] - nonSnow[i][j-k]);
                    }
                }
                else if(j == k-1)
                {
                    curr = (snow[i][j] - snow[i-k][j]) - (nonSnow[i][j] - nonSnow[i-k][j]);
                }
                else
                {
                    curr = (snow[i][j] - snow[i][j-k] - snow[i][j-k] + snow[i-k][j-k]) -
                           (nonSnow[i][j] - nonSnow[i][j-k] - nonSnow[i][j-k] + nonSnow[i-k][j-k]);
                }
                // cout<<curr<<" "<<endl;
                common = __gcd(common, abs(curr));
            }
        }
        int total = 0;
        for(int i = 0; i < n; i++)
        {
            for(int j = 0; j < m; j++)
            {
                if(s[i][j] == '0') total -= land[i][j];
                else total += land[i][j];
            }
        }
        if((common == 0 && total == 0) || (common > 0 && total % common == 0))
        {
            cout<<"YES"<<endl;
        }
        else cout<<"NO"<<endl;
    }
    return 0;
}

Can anyone please!!! tell me what did I do wrong here in question D. please!!! I am disgusted

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

It is showing "Amount to claim: 0." in the prize link, what's the problem? How can I resolve the issue?

Update: Fixed

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

Can I know how to claim the prize because I got 4 NEAR but when I enter the form link and make cf near account nothing happens can someone explain how to claim the reward please?

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

Why I tried to connect NEAR account via here and clicking "Connect your account with NEAR ecosystem", only to get a text which reads, "500: Internal Server Error" in the url "https://acade.studio/cf/[account name]/[some UUIDs]"?

Also, I tried other guy's account on my computer, which can normally connects NEAR.

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

All

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

Near Prizes-

I got 4 Near as a prize and I did sign up on Acade Studio as well as claimed the prize. However it is not showing up on the Acade Studio built-in wallet balance, and on MyNearWallet, it says it requires a deposit with NEAR to be able to do transactions. What can I do, or will the prize be given after some time? I did claim the prize almost a week back.