Skip to content

Instantly share code, notes, and snippets.

@itkq
Last active July 10, 2017 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itkq/a4e7c51755744113581ddca65b9b976c to your computer and use it in GitHub Desktop.
Save itkq/a4e7c51755744113581ddca65b9b976c to your computer and use it in GitHub Desktop.
東工大編入生が自分の学部成績の真の平均点を知るためのスクリプト
count=sum=0;$('div.tableSet01 > div > table > tbody > tr > td:nth-child(5)').each(function(){point_str=$(this).text();if(point_str=="認定"){point = 60; count++;}else if(point_str == "合格"){point=0;}else{point=Number(point_str);count++}sum+=point;});console.log(sum/count);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment