Use this for anything related to plagiarism - Reporting cheating, appeals, etc

That was insane man… don’t worry he got marks for his creativity :innocent: :innocent:

Hey @john_smith_3 Could u plz tell what is in the code? I am not able to understand it, how it got passed?

Just run it through the pre-processor (gcc -E) to see :slight_smile:

Here’s the output of doing that; cutting out all the boring stuff; then pretty-ing it up:

[simon@simon-laptop][17:15:44]
[~/devel/hackerrank/otherpeoples]>gcc -E revin_99-ACCBIP.cpp  | sed -ne '/using namespace std;/,$ p' | grep -v "^#" | clang-format
using namespace std;
long long int fun(long long int num, int colour,
                  vector<long long int> lines_set[]) {
  vector<long long int> lines = lines_set[colour];
  for (long long int i = 0; i < lines.size() && num > 0; i++) {
    long long int temp = min(lines[i], num);
    lines[i] = lines[i] - temp;
    num = num - temp;
  }
  if (num > 0) {
    return 0;
  }
  long long int sum1 = 0;
  long long int k = lines.size();
  for (int i = 0; i < k; i++)
    sum1 += lines[i];
  long long int sum2 = 0;
  long long int temp[k + 1];
  for (long long int i = 0; i < k; i++) {
    temp[i] = lines[i] * (sum1 - lines[i]);
    sum2 += temp[i];
  }
  sum2 /= 2;
  long long int sum3 = 0;
  for (long long int i = 0; i < k; i++)
    sum3 += lines[i] * (sum2 - temp[i]);
  sum3 /= 3;
  return sum3;
}
int main() {
  long long int t;
  cin >> t;
  while (t--) {
    long long int N, C, K;
    cin >> N >> C >> K;
    unordered_map<long long int, int> colour[C + 1];
    vector<long long int> lines[C + 1];
    for (int i = 1; i <= N; i++) {
      long long int a, b, col;
      cin >> a >> b >> col;
      colour[col][a]++;
    }
    long long int V[C + 1] = {0};
    for (long long int i = 1; i <= C; i++) {
      cin >> V[i];
    }
    for (long long int i = 1; i <= C; i++) {
      vector<long long int> lines_set;
      for (auto it : colour[i]) {
        lines_set.push_back(it.second);
      }
      sort(lines_set.begin(), lines_set.end());
      lines[i] = lines_set;
    }
    long long int dp[K + 1][C + 1];
    long long int fun_mem[K + 1][C + 1];
    for (int i = 0; i <= K; i++) {
      for (long long int j = 0; j <= C; j++) {
        dp[i][j] = 0x7fffffffffffffffLL;
        if (j == 0) {
          dp[i][j] = 0;
        }
        fun_mem[i][j] = -1;
      }
    }
    for (long long int i = 0; i <= K; i++) {
      for (long long int j = 1; j <= C; j++) {
        long long int max_lines_rem = i / V[j];
        for (long long int k = 0; k <= max_lines_rem; k++) {
          long long int val_rem = k * V[j];
          if (fun_mem[k][j] == -1) {
            fun_mem[k][j] = fun(k, j, lines);
          }
          dp[i][j] = min(dp[i][j], dp[i - val_rem][j - 1] + fun_mem[k][j]);
        }
      }
    }
    cout << dp[K][C] << "\n";
  }
  return 0;
}


5 Likes

I have an appeal; I have been accused of plagiarism; whereas I’m sure I have never used any code not my own or discusses solutions. First off, can someone point me to how to see which problem in which I’ve been accused? On my profile I see only the competitions in which I’m accused. I shall then post further with my appeal.

It is a real account. I was 5 star before this. Check my submission history please.
EDIT; Please also try to avoid any unnecessary hate. I understand that you automaticaly percieve of me as a cheater trying to act innocent but I really am not; well at least give me the benefit of doubt and help me figure out what exactly was flagged.
Also to repeat, this is NOT a fake account. It is on THIS account that I have been accused

Is there any way to see which problems have been flagged?

I am sorry. You can check your email. Codechef sends a mail if you are caught in plagiarism.

Can we have a look at these two solutions?
https://www.codechef.com/viewsolution/27365391
https://www.codechef.com/viewsolution/27358358

@anon34233284
https://www.codechef.com/viewsolution/32944988
https://www.codechef.com/viewsolution/32944932

actually both were my submissions… At that time I just started coding and was not aware of Moss so I made 2 ids for fun and submitted the same code on both when I heard about Moss I myself reported my both ids and deleted both of them.

Please take strict actions against the defaulters

https://www.codechef.com/viewsolution/37109480

https://www.codechef.com/viewsolution/37108157

https://www.codechef.com/viewsolution/37105375

1 Like

Hey all, this august long challenge was one of such contest in which i had worked a lot. SInce i had started since last two months, therefore i wanted to give my best shot. I did till 430 and struck at chefwed partially. My twocases was not working , i worked hard to get them right . But could not do so. But when i looked at submissions i was amazed. Chefwed had alot of correct submissions.So out of just curiosity i stalked some college friends codes and got amazed they were all same. Putting them down.

Shri Ramdeobaba college of engineering (One of the best private institution in central maharashtra)

https://www.codechef.com/viewsolution/36820074
CodeChef: Practical coding for everyone (variables changes and c++ , first one is java)
CodeChef: Practical coding for everyone
CodeChef: Practical coding for everyone
CodeChef: Practical coding for everyone
CodeChef: Practical coding for everyone
CodeChef: Practical coding for everyone
CodeChef: Practical coding for everyone
CodeChef: Practical coding for everyone

Also some nearby colleges

VNIT (Remember its National Institute everyone fights for)
https://www.codechef.com/viewsolution/36838007
CodeChef: Practical coding for everyone(Hats off to this dude, level of cheating)

IIIT N(Nearby college)
https://www.codechef.com/viewsolution/36791701
https://www.codechef.com/viewsolution/36852241
https://www.codechef.com/viewsolution/36786819
https://www.codechef.com/viewsolution/36781976
https://www.codechef.com/viewsolution/36836353
https://www.codechef.com/viewsolution/36852897

2 Likes

WoW, checked the second one, I’m so confused on how does this even works. then Checked two more solution from his profile, dude surely loves america.

See this post :slight_smile:

3 Likes

This guy has cheated in almost every contest . He has made three codechef id just to cheat and increase the rating.

All three id’s are of same person. I mean just look at this id ashis_19 | CodeChef User Profile for Code_Kar | CodeChef . How can someone who was performing so bad till july cookoff 2020 suddenly improved a lot just in a matter of few days and got rank of 265 in july lunchtime and rank 469 in august long challenge.

1.Check the soution of june long challenge.Each of the solutions in june long are same in all the three ids.
https://www.codechef.com/viewsolution/34422077
https://www.codechef.com/viewsolution/34423954
https://www.codechef.com/viewsolution/33671543

Infact ,Each question of june challenge has same solution in all three ids of this guy.

2.Now check solution of july cookoff
https://www.codechef.com/viewsolution/35799447
https://www.codechef.com/viewsolution/35798909

I have checked all the three profiles of this guy .Same cheating case in these contest too by this guy.
3.July challenge.
4.August long challenge.
5. June lunchtime.
6.April challenge.

Codechef kindly look into the matter . I am 100 percent sure this guy cheated in august challenge and july lunchtime . This guy has become 4 star just due to cheating.

3.Now check solution of july challenge:
https://www.codechef.com/viewsolution/35211238
https://www.codechef.com/viewsolution/35211860

4.Now check solution of August long challenge:
https://www.codechef.com/viewsolution/36256338
https://www.codechef.com/viewsolution/36456245

He has just inserted unnecessary functions which is of no use in code and wrote ternary form in place of if else.

5.Now lets see june lunchtime:
https://www.codechef.com/viewsolution/34787323
https://www.codechef.com/viewsolution/34786350
https://www.codechef.com/viewsolution/34784342

6.April challenge:
https://www.codechef.com/viewsolution/31812875
https://www.codechef.com/viewsolution/31813894
https://www.codechef.com/viewsolution/31814332

Same solution as others in chefwedd and skmp
@admin @akshitm16 @ssrivastava990

Please check his submission I saw him asking about solutions in telegram during ongoing contest
@admin
https://www.codechef.com/viewsolution/36819814
https://www.codechef.com/viewsolution/36657662

Please @admin check his account also…
mr_simple | CodeChef User Profile for Nikhil ranjan | CodeChef

Same submissions CHFNSWAP - SEP20

https://www.codechef.com/viewsolution/37917821
https://www.codechef.com/viewsolution/37917840
https://www.codechef.com/viewsolution/37917893
https://www.codechef.com/viewsolution/37917953
https://www.codechef.com/viewsolution/37918008

All were made during the end of contest.
There must be a lot more, I am just posting which I observed.

1 Like