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

Автор ashwanikumarsharma, история, 5 недель назад, По-английски

With the conclusion of Round 2, here’s a breakdown of how many participants from different countries qualified for Round 3 (Top 500). The table below shows the number of qualifiers in the top 500 and their presence in the top 100.

Country Top 500 Top 100
Japan (JP) 42 12
USA (US) 40 10
Vietnam (VN) 36 2
India (IN) 31 0
Taiwan (TW) 23 6
Ukraine (UA) 22 8
China (CN) 19 6
Poland (PL) 19 6
Russia (RU) 13 4
Canada (CA) 12 4
South Korea (KR) 10 4
Bangladesh (BD) 8 1
Hong Kong (HK) 8 0
Italy (IT) 6 1
Czech Republic (CZ) 2 2

P.S.: This table does not account for participants who haven't specified their country on Facebook, and I have done this manually, not by web scraping, so I might have missed some other major countries.

Полный текст и комментарии »

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

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

Anyone who know it properly, Please explain!

Cpp Code

#include<iostream>
using namespace std;

int main(){
    int p = 5;
    int q = ++p * ++p ;
    cout<<p<<endl;
    cout<<q<<endl;

    p = 5;
    q = ++p * p++;
    cout<<p<<endl;
    cout<<q<<endl;

    p = 5;
    q = p++ * ++p;
    cout<<p<<endl;
    cout<<q<<endl;

    p = 5;
    q = p++ * p++;
    cout<<p<<endl;
    cout<<q<<endl;

return 0;
}

Java Code

class incre{
    public static void main(String args[]){
        int p = 5;
        int q = ++p * ++p;
        
        System.out.println(p);
        System.out.println(q);

        p = 5;
        q = ++p * p++;

        System.out.println(p);
        System.out.println(q);

        p = 5;
        q = p++ * ++p;
        System.out.println(p);
        System.out.println(q);

        p = 5;
        q = p++ * p++;
        System.out.println(p);
        System.out.println(q);
    }
}

Cpp Output

7
49
7
42
7
35
7
30

Java Output

7
42
7
36
7
35
7
30

Although java output is obvious and it is what I expect but lots of confusion in Cpp

If possible attach some reliable document to read this

Полный текст и комментарии »

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

Автор ashwanikumarsharma, история, 3 месяца назад, По-английски
  • Проголосовать: нравится
  • +240
  • Проголосовать: не нравится

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

"You all can check the leaderboard—even Legendary Grandmasters are unable to solve Problem F, and Grandmasters and Masters are struggling with E1 and E2. Why waste such hard-made problems on a Division 2 contest instead of saving them for Division 1? What's the point of putting questions that are unsolvable by Division 2 participants? Contest difficulty should increase linearly, but it often spikes abruptly. What do you all think about this? Feel free to criticize, correct, and share your opinion."

Полный текст и комментарии »

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

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

Cheaters are getting caught by Codeforces. Standings is changing. We can see the cheaters whose solutions has been skipped from standings page no 63 and onwards

Special thanks to oursaco ioweyoualot cwz2024 khoad for raising the issue by writing blogs and thanks to everywhere who commented and tagged the cheaters.

https://codeforces.net/contest/2002/standings/page/63 https://codeforces.net/contest/2002/standings/page/64 https://codeforces.net/contest/2002/standings/page/65 https://codeforces.net/contest/2002/standings/page/66 https://codeforces.net/contest/2002/standings/page/67

and more...

Полный текст и комментарии »

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

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

Please remove the feature of public display of Virtual Contests in standings so that we don't have to see some random guy ahead of tourist, jiangly. Virtual contest standings should be visible only to the user who has given the virtual contest. Many times, users just copy the codes of top coders and submit them within no time just to appear at the top of the leaderboard.

P.S. It doesn't affect me, but this is just a suggestion to make this platform a little bit better.

Полный текст и комментарии »

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