You are not logged in. Please login at to post your questions!


CODECHEF Attendance


CODECHEF Attendance Tool

Hey There Guys,

Hope You all are having a good time. I want to present you another tool which can show you your attendance in CodeChef.

This is especially useful for those who want to check their Attendance for the 100% Attendance prize category recently introduced to CodeChef.

Not Writing any further (need to study for exams :p)

Please leave your comments below.


I literally wrote the entire code for the site again from scratch today morning (LITERALLY).

There were mainly 2 problems :

  1. The MARCH COOK OFF getting unrated, so even if some one participated in that, it was still showing that the person didn't take part.

  2. Even if a person did not solve any problem correctly and their rating changes (might happen if someone submits but doesn't get AC in any of their submissions) will still be shown as present.

These 2 problems were there because I was scraping the change of ratings instead of the number of Problems solved (which was actually needed).

But no worries people, It's been fixed now.

Also as I already mentioned that I wrote the entire code again (major parts), there might be some new bugs waiting for me to fix. So please Let me Know. Peace.

Here's The Link to the site.

FaceBook Page to stay updated :)

Thank You.

asked 05 May '17, 22:42

shraeyas's gravatar image

accept rate: 10%

edited 22 Mar '18, 20:20

The only confusion I have presently is whether I should remove that CodeChef Logo or not(Cause it's unofficial :p).

I will remove it if they ask me to.

(05 May '17, 22:43) shraeyas3★

Regarding logo, send them a mail. It would be safe that you "informed them", instead of using it until they retaliate. Cause logos and stuff...its usually best to take permission to avoid unnecessary hassle.

And lmao, i knew you will bring something like this up when i saw you thanking for idea. :p

(05 May '17, 22:44) vijju123 ♦♦5★

Great work:)

(05 May '17, 22:47) adhish_kapoor3★

Hey Shreyas, We would like to know more about this new tool of yours. Can we get on a call and discuss it further? You can drop your contact number at help[at]codechef[dot]com and we will get in touch with you.

(08 May '17, 15:48) admin ♦♦0★

Aaaan aaaan @shraeyas . Congo bro...only one word....."TREATTT" XD

(08 May '17, 17:54) vijju123 ♦♦5★

Congrats @shraeyas ^_^ ..Keep up the good work.. Really nice gesture by Codechef team ..

(08 May '17, 18:32) abhist5★

@admin thanks for your response. I have sent a mail to help[at]codechef[dot]com.

(08 May '17, 21:58) shraeyas3★

Yesterday someone asked me about how I made this tool, so if you guys are interested you can find the source code here :

(12 May '17, 09:47) shraeyas3★

Hey mate, I think you search for certain keywords such as "FEB14" in the page of the person that's why it's showing that I gave feb14 long challenge even though I haven't but I have solved a problem named "LFEB14B". Anyways, awesome work!!

(19 May '17, 04:42) anmol137dh086★

I Fixed it @anmol137dh08

Thanks for pointing that out, you can convert your comment to answer


(19 May '17, 09:00) shraeyas3★
showing 5 of 10 show all

@shraeyas Please add March Lunchtime 18 as unrated in your tool. As mentioned here


answered 02 Apr '18, 21:14

aryanc403's gravatar image

accept rate: 10%

Username is not being validated.
Even if we enter wrong username, it shows attendance instead of showing the error.


answered 21 Apr '18, 21:27

pankaj_chopra's gravatar image

accept rate: 21%

edited 23 Apr '18, 09:31


Thanks. I will merge your PR.

(23 Apr '18, 10:30) shraeyas3★

Well done buddy! However, it's sort of an optimisation of counting the contest names in the profile. It would be nice if it would tell the exact time (Eg: Feb Cook Off 2017) When my 100% attendance would be completed. You took it from O(nlogn) to O(n), now take it to O(logn)!


answered 05 May '17, 22:49

abdullah768's gravatar image

accept rate: 17%

Absolutely. I just wrote the code for the basic site, didn't even think much about additional features.

I will definitely add this feature in the near future.

Thank You :)

(05 May '17, 22:56) shraeyas3★

Its showing i didnt attend march cook-off. But i did attend it (it was declared unrated later)

(05 May '17, 22:56) vijju123 ♦♦5★

It actually tracks the changes in ratings and then tell us if someone participated or not.

But I will try finding a fix on that, but till then kindly bear with me (need to study for exams too :p ).

Thanks for pointing that out. :)

(05 May '17, 23:06) shraeyas3★

I guessed that it would be checking changes in ratings, as its makes it very easy to code :p .

(05 May '17, 23:21) vijju123 ♦♦5★

It is awesome work!


answered 05 May '17, 22:56

neilit1992's gravatar image

accept rate: 20%

Nice work mate :) And I agree with @abdullah768 that something like longest streak or contests left to reach the landmark would be awesome!


answered 05 May '17, 23:02

ash_code's gravatar image

accept rate: 15%

Please check the March Cook-Off thing. The bug could be because it was unrated.


answered 05 May '17, 23:18

mathecodician's gravatar image

accept rate: 7%

@mathecodician Yes you are right. That's because it was unrated. :)

(05 May '17, 23:21) shraeyas3★

He mentioned in above comments that its because that contest was unrated. His algo checks for changes in ratings.

(05 May '17, 23:21) vijju123 ♦♦5★

Lol....11 sec difference b/w comments. Time to study for exams XD

(05 May '17, 23:22) vijju123 ♦♦5★


(05 May '17, 23:27) shraeyas3★

Can u please correct that fault?

(10 May '17, 10:39) mathecodician6★

OK buddy, I'll do it, end sems though, might take a while :)

(10 May '17, 10:56) shraeyas3★

@mathecodician its fixed now buddy. :)

(10 May '17, 12:22) shraeyas3★
showing 5 of 7 show all

good work...
I hope I can be more regular in future. This should be a good move as seeing more and more of the green tick mark would push me more...


answered 06 May '17, 10:04

goof_expert's gravatar image

accept rate: 0%

Good work. Keep up the job.


answered 08 May '17, 18:56

ayan_nitd's gravatar image

accept rate: 13%

Great work!


answered 08 May '17, 20:54

dp13's gravatar image

accept rate: 0%

Can somebody state the attendance policy for getting laddoos, I think it requires to appear for all contests for a year, right?


answered 09 May '17, 19:31

pratikwankhede's gravatar image

accept rate: 0%

It has been introduced in March, so from March 2017 onwards 12 months in a row full attendance (in Long, Short and Lunch Time) will fetch you 1000 laddus.

(09 May '17, 19:43) shraeyas3★

Well I did attend April Long Challenge and Cook-Off and some other contests previously but its showing that I've attended not even a single contest since I've logged in. Please look into it.


answered 10 May '17, 00:22

shubhamaggarw's gravatar image

accept rate: 0%

@shubhamaggarw it's working fine without any problems, You can have a look below

You could have either misspelled your username or codechef server might have been down at that time.


alt text


answered 10 May '17, 08:09

shraeyas's gravatar image

accept rate: 10%

edited 10 May '17, 08:12

I think there's a bug-

Even if the username field is empty it is showing results. Good work BTW :)


answered 10 May '17, 19:24

anuraag_s2's gravatar image

accept rate: 0%

Fixed. Now it will show error!

(10 May '17, 19:30) shraeyas3★

really nice work dude!


answered 12 May '17, 16:44

c0derahul's gravatar image

accept rate: 0%

Hey! Good work. I want to know which hosting service you are using and the host plan.


answered 17 May '17, 11:00

bharadwaj_pro's gravatar image

accept rate: 0%

Unlimited Advance Linux

But I did not purchase it, I got it as a freebie for one year :)

(17 May '17, 14:21) shraeyas3★

Lmao!! Lucky you XD.

(17 May '17, 19:40) vijju123 ♦♦5★

Why not create an Android app for this, add some more cool features too in that :D

Awesome work BTW :D


answered 20 May '17, 21:31

shivamiet's gravatar image

accept rate: 15%

Definitely, I was planning to do something with Android apps this summer :D

Thanks for your Appreciation

(21 May '17, 08:54) shraeyas3★

Hey! How did you add those random quotes in the end of that source code :D

I checked it on your github link too but found no evidences how that occurs? Seriously did you not upload that on github or is it something deeper which I can't figure out?

and BTW congrats. I just saw that "saakhshaat" Codechef responded on this post :P

(22 May '17, 22:12) shivamiet1★

Reminds me that codechef was also thinking of releasing an app?

(22 May '17, 23:21) vijju123 ♦♦5★

I searched for that post after reading your comment. Hope for the best.

(23 May '17, 06:41) shraeyas3★

Can you please reply to my query above?

Just wanted to know how to make those quotes change.

(23 May '17, 15:01) shivamiet1★

It's simple buddy :p

If you know even a little bit about web development and languages then you can figure out how that works.

Just try to think about it for once :)

(23 May '17, 17:44) shraeyas3★

I couldn't. Please tell me how -_-

(24 May '17, 16:54) shivamiet1★

There are tons of methods, the easiest way could be...

Just take an array, add few sentences in it (i.e. strings) and access the array elements using a random number generator (use it as index for the array).

(25 May '17, 08:38) shraeyas3★

Ok. Thank you so much. So now I know. :)

Can you give me some tips to excel in Competitive Programming?

(25 May '17, 18:26) shivamiet1★

That is something I myself am trying to figure out :P

(25 May '17, 18:28) shraeyas3★

There's another bug and not really a bug but kind of an improvement.

For example sometimes codechef gives 503 error and in that case your tool shows that the person is not present in any of the contests. So I was just saying if you show some error message in that case then that would be better.


(31 May '17, 22:01) shivamiet1★

Please fix the above problem also.

(04 Jun '17, 09:26) shivamiet1★

If I am not wrong I guess this error (503) now doesn't come on Codechef now?

(06 Jun '17, 12:55) shraeyas3★

why can't I view attendance before 2014?

(10 Jun '17, 13:01) shivamiet1★

Since Lunchtimes were started from June 2013 so I thought there was not much need to show attendance before that.

(10 Jun '17, 17:30) shraeyas3★

Ok ok. What about the app?

(10 Jun '17, 17:34) shivamiet1★

Currently there doesn't seem for any need of an app for this purpose. Simply having an app for viewing one's attendance is not enough, then it should also contain features like contest notification and all, only then it would be useful. But such apps already exist, so clearly an app for simply this purpose is not of much use.

(10 Jun '17, 17:37) shraeyas3★

Ok ok. I see. Thanks,


(10 Jun '17, 17:40) shivamiet1★
Here is the app for this purpose.
Take a look at it.

(28 Jul '18, 11:54) pankaj_chopra3★
showing 5 of 19 show all

Awesome Tool.


answered 21 May '17, 14:24

shubham_genius's gravatar image

accept rate: 10%

Thank you.

(22 May '17, 15:31) shraeyas3★

There's a bug, even if you enter an invalid username then also the results are being displayed

(28 May '17, 14:46) shubham_genius0★


Will show error now, thanks for pointing that out ^_^

(28 May '17, 21:07) shraeyas3★

@shaeyas your website(tool) has a page-view counter which doesn't count unique page views ( i think you know this ) . it would be better if you get a unique page-view counter up and running . Great work BTW!


answered 28 May '17, 21:45

inishchith's gravatar image

accept rate: 0%

Yes, I know, it counts the no. of times the page is opened, I will fix it soon.

Thanks :)

(28 May '17, 22:35) shraeyas3★

I modified it, now it will only increment if someone actually presses the submit button to view their attendance.

(29 May '17, 09:47) shraeyas3★

Hey @shraeyas , change that MAY Lunch Time thing, since it will not be considered towards 100% attendance.


answered 02 Jun '17, 13:30

ayan_nitd's gravatar image

accept rate: 13%


It's not really a fix but I just tried to make it more bearable :P

alt text

It will now show a warning sign in case of any miscellaneous contests (unrated or cancelled).

If I come across any better solution to this I will add it later.

And yes thanks for your suggestion :)


answered 02 Jun '17, 15:16

shraeyas's gravatar image

accept rate: 10%

edited 02 Jun '17, 15:18


Also if there is any other contest which was cancelled or something then you all can post into comments. It will be added to the exceptions.

I only know about two such contests viz. March Cook-Off and May Lunchtime so they have been added.


(02 Jun '17, 21:33) shraeyas3★

Plz upvote me , I want to ask some doubts for which I need some karma , Thank you guys.

This answer is marked "community wiki".

answered 06 Jun '17, 15:46

ujjwal451's gravatar image

accept rate: 0%

You already have enough karma

But still you can have a look on this thread :

Simply post your queries there.

(06 Jun '17, 16:11) shraeyas3★

@shraeyas When I open my username to see my attendnce. It is showing wrong against all contest of March. But I was present in cook off and long challenge. So, reporting minor bug here. Btw I was also present in oct17. You can see my rating fall. But since I was not able to solve any question. So Your tool is showing me absent. alt text


answered 24 Mar '18, 13:29

aryanc403's gravatar image

accept rate: 10%

edited 24 Mar '18, 13:32


I guess since codechef added division system, the script is not able to get the attendances correctly.

(24 Mar '18, 19:31) ayan_nitd4★

Fixed. Please let me know if there are any other bugs. Thanks :)

(25 Mar '18, 08:10) shraeyas3★

Hey @shraeyas

Nice Tool.
I guess u missed one thing. Problem setting panel is also deemed to be participating in the contest, for the purpose of attendence, as i know.

For example, @vijju123 was editorialist for APRIL18, but he is shown to have not participated in APRIL18. (Wasnt stalking. Just thought of this possibility and searched for the Master Chef Vijju :D )


answered 23 Apr '18, 20:48

taran_1407's gravatar image

accept rate: 22%


Let it remain so :p. Codechef will kick me out if I participate in a contest where I serve as editorialist :(

idk, I will have to confirm from @admin if setting panel is deemed to have participated. afaik it wasnt so :/

(23 Apr '18, 20:52) vijju123 ♦♦5★

Thanks @taran_1407 :)

Master chef @vijju123 I don't think codechef will check someone's attendance from my tool so there should be no risk in implementing that :p

(23 Apr '18, 21:13) shraeyas3★

@vijju123, you deserve to be kicked out if u participate in a contest where u r editorialist. Cant say fairer than that.

I guess u misread my statement (it wasn't unexpected). Deemed means assumed. U dont have to actually make a submission.

@vijju123, see the following link, last line of para 2.

(23 Apr '18, 21:46) taran_14076★

@vijju123, you deserve to be kicked out if u participate in a contest where u r editorialist. Cant say fairer than that.

You took my statement literally and seriously- overlooking the sarcasm/fun/leg-pullin/humor/whatever (:/ XD) there xD xD xD

@shraeyas - Well, what if Chef decides to become evil for once? :o :3 :p

(23 Apr '18, 22:36) vijju123 ♦♦5★

@vijju123 Then we will see something like this . :)

(23 Apr '18, 22:51) aryanc4035★

@vijju123, see the following link, last line of para 2.

NOOOOOOOOOOOOOOO. That streak broke after this cook-off (40'th contest) :( . I felt its already broken by April long so well, didnt participate in cook-off despite coming after half an hour. I feeel baaaad :(. Need another year for 100 streak then.

@vijju123 Then we will see something like this . :)

Lololol xD

(23 Apr '18, 22:55) vijju123 ♦♦5★

@vijju123 only @admin may help you in this case.

@vijju123 To be aware of rules is very Important in this world.

Only then we can now how to use them and If needed how to exploit them.

(23 Apr '18, 23:19) aryanc4035★

Only then we can now how to use them and If needed how to exploit them.

and If needed how to exploit them.


:p :p :p xD xD.

But in all seriousness, thats true. Especially in these times.

(23 Apr '18, 23:34) vijju123 ♦♦5★
showing 5 of 8 show all

@shraeyas I was not able to solve any question in April Cook Off. It shows me absent but I'm present and I have made ~5 unsuccessful submissions.


answered 23 Apr '18, 22:36

aryanc403's gravatar image

accept rate: 10%

A great idea and implementation!

For the past couple of days I have been trying to check my attendance but it shows invalid username. Have tried with a bunch of different usernames and all the same error message.


answered 15 May '18, 00:10

vaibhv_shrma's gravatar image

accept rate: 0%


You can refer here for the attendance.

(07 Jul '18, 13:32) pankaj_chopra3★
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:


question asked: 05 May '17, 22:42

question was seen: 15,314 times

last updated: 28 Jul '18, 11:54