Skip to main content
Commonmark migration
Source Link

#Pike, 87 91 107 77 76 bytes - 25% = 57

Pike, 87 91 107 77 76 bytes - 25% = 57

string t(int y){return"Nov "+((11-Calendar.Day(y,11,1)->week_day())%7+22);}

leaving the old one in for comparison because i find it more clever in terms of taking advantage of the Calendar module, but the above is way shorter.

string t(int y){object n=Calendar.Month(y,11);return"Nov "+(n->weeks()->day(4)&n->days())[3]->month_day();}

#Pike, 87 91 107 77 76 bytes - 25% = 57

string t(int y){return"Nov "+((11-Calendar.Day(y,11,1)->week_day())%7+22);}

leaving the old one in for comparison because i find it more clever in terms of taking advantage of the Calendar module, but the above is way shorter.

string t(int y){object n=Calendar.Month(y,11);return"Nov "+(n->weeks()->day(4)&n->days())[3]->month_day();}

Pike, 87 91 107 77 76 bytes - 25% = 57

string t(int y){return"Nov "+((11-Calendar.Day(y,11,1)->week_day())%7+22);}

leaving the old one in for comparison because i find it more clever in terms of taking advantage of the Calendar module, but the above is way shorter.

string t(int y){object n=Calendar.Month(y,11);return"Nov "+(n->weeks()->day(4)&n->days())[3]->month_day();}
deleted 2 characters in body
Source Link
eMBee
  • 101
  • 1

#Pike, 87 91 107 77 7776 bytes - 25% = 57.75

string t(int y){return "Novreturn"Nov "+((11-Calendar.Day(y,11,1)->week_day())%7+22);}

leaving the old one in for comparison because i find it more clever in terms of taking advantage of the Calendar module, but the above is way shorter.

string t(int y){object n=Calendar.Month(y,11);return "Nov;return"Nov "+(n->weeks()->day(4)&n->days())[3]->month_day();}

#Pike, 87 91 107 77 bytes - 25% = 57.75

string t(int y){return "Nov "+((11-Calendar.Day(y,11,1)->week_day())%7+22);}

leaving the old one in for comparison because i find it more clever in terms of taking advantage of the Calendar module, but the above is way shorter.

string t(int y){object n=Calendar.Month(y,11);return "Nov "+(n->weeks()->day(4)&n->days())[3]->month_day();}

#Pike, 87 91 107 77 76 bytes - 25% = 57

string t(int y){return"Nov "+((11-Calendar.Day(y,11,1)->week_day())%7+22);}

leaving the old one in for comparison because i find it more clever in terms of taking advantage of the Calendar module, but the above is way shorter.

string t(int y){object n=Calendar.Month(y,11);return"Nov "+(n->weeks()->day(4)&n->days())[3]->month_day();}
shorter version
Source Link
eMBee
  • 101
  • 1

#Pike, 87 91 91 107 10777 bytes - 25% = 80.25 string t(int y){object n=Calendar57.Month(y75

string t(int y){return "Nov "+((11-Calendar.Day(y,11,1)->week_day())%7+22);}

leaving the old one in for comparison because i find it more clever in terms of taking advantage of the Calendar module,11);return "Nov "+(n->weeks()->day(4)&n->days())[3]->month_day();} but the above is way shorter.

string t(int y){object n=Calendar.Month(y,11);return "Nov "+(n->weeks()->day(4)&n->days())[3]->month_day();}

#Pike, 87 91 107 bytes - 25% = 80.25 string t(int y){object n=Calendar.Month(y,11);return "Nov "+(n->weeks()->day(4)&n->days())[3]->month_day();}

#Pike, 87 91 107 77 bytes - 25% = 57.75

string t(int y){return "Nov "+((11-Calendar.Day(y,11,1)->week_day())%7+22);}

leaving the old one in for comparison because i find it more clever in terms of taking advantage of the Calendar module, but the above is way shorter.

string t(int y){object n=Calendar.Month(y,11);return "Nov "+(n->weeks()->day(4)&n->days())[3]->month_day();}
deleted 21 characters in body
Source Link
eMBee
  • 101
  • 1
Loading
make it a real function
Source Link
eMBee
  • 101
  • 1
Loading
edit heading
Source Link
eMBee
  • 101
  • 1
Loading
Source Link
eMBee
  • 101
  • 1
Loading