JavaScript to get total number of fully correct submissions for all problems on the contest page(JAN15)

The contest page shows the list of problems with number of total submissions. This information is sometimes misleading as “Successful submissions” gives a count of all the submissions for the problem(including submissions with points < 100.000). This scripts gives the number of fully correct (100.000) submissions for all the problems.

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('r={};3={};s={};4 j=0;4 5;9 1m(a){k(a.D(-1)==\'/\'){T a.D(0,a.y-1)}T a}9 u(b,e,f){1d.1j(f,x((b+e)/2),b,e);4 g=x((b+e)/2);4 d=V W();4 h="X";4 i="Y://Z.10.17/1c/B?C="+d.t()+"&E="+g+"&F="+f+"&G="+h;$.H({I:i,J:"K",O:9(a){a=M.N(a);4 c=(a.P.Q(/1i.S/g)||[]).y;k(c==12&&b!=e){u(g+1,e,f)}q k(c==0&&b!=e){u(b,g,f)}q{k(c==12)g++;r[f]=c+(g)*12;5.w(f,r[f]);$(".7 .6:m("+s[f]+") 8:l(\'"+f+"\')").n().o(5.p(f)+"/"+3[f])}}})}$(1h).1g(9(){r={};3={};4 g="";s={};j=0;1f{5=1k.1e;4 d=V W();k(5.p("A")&&d.t()<x(5.p("A"))){$(".7:18 .6").19(9(){4 a=$($(1a).1b("8>a")[0]).o();3[a]=$(".7 .6:m("+j+") 8:l(\'"+a+"\')").n().o();k(3[a].v("/")[1]){3[a]=3[a].v("/")[1]}$(".7 .6:m("+j+") 8:l(\'"+a+"\')").n().16(\'<15 14="/13/11-R.L">\');(9(z){4 z=z;1l(9(){k(a==5.p("U")){$(".7 .6:m("+z+") 8:l(\'"+a+"\')").n().o(3[a]+"/"+3[a])}q{$(".7 .6:m("+z+") 8:l(\'"+a+"\')").n().o(5.p(a)+"/"+3[a])}},1n)})(j);j++})}q{5.w("A",d.t()+1o);$(".7:18 .6").19(9(){4 b=$($(1a).1b("8>a")[0]).o();4 e="X";r[b]=0;s[b]=j;3[b]=$(".7 .6:m("+j+") 8:l(\'"+b+"\')").n().o();k(3[b].v("/")[1]){3[b]=3[b].v("/")[1]}$(".7 .6:m("+(j++)+") 8:l(\'"+b+"\')").n().16(\'<15 14="/13/11-R.L">\');4 f="Y://Z.10.17/1c/B?C="+d.t()+"&E="+0+"&F="+b+"&G="+e;$.H({I:f,J:"K",O:9(a){a=M.N(a);4 c=(a.P.Q(/1.S/g)||[]).y;k(c!=1){u(0,a.1p-1,b)}q{$(".7 .6:m("+(s[b])+") 8:l(\'"+b+"\')").n().o(3[b]+"/"+3[b]);5.w("U",b);g=b}}})})}}1q(1r){5={}}});',62,90,'|||totalSubmissions|var|localstorage|problemrow|problems|td|function||||||||||id|if|contains|nth|next|text|getItem|else|successfullSubmissions|ids|getTime|getRatings|split|setItem|parseInt|length||ts|prob|_|substr|page|pcode|ccode|ajax|url|type|GET|gif|JSON|parse|success|content|match|icon|000|return|pointerProblem|new|Date|JAN15|http|www|codechef|loader||misc|src|img|html|com|first|each|this|find|ssubmission|console|localStorage|try|ready|document|100|log|window|setTimeout|stripTrailingSlash|1000|1800000|max_page|catch|err'.split('|'),0,{}))
  1. Go to the JAN15 contest page(Only works on this page at the moment).
  2. Copy Paste this script onto your browser’s javascript console to get number of fully correct submissions for all the problems.
  3. Script will get updated information only in windows of 30 minutes(To reduce unnecessary load on codechef servers).
  4. Might have some bugs here and there.
  5. Can be used with tampermonkey, greasemonkey
8 Likes

I have written a python script, here.
It works on any problem, with partial scoring.

This is quite slow though.

awesome man! :D.

works perfectly in tampermonkey :wink:

Beautiful :slight_smile: