Skip to content

Instantly share code, notes, and snippets.

@yhyacinth
yhyacinth / a.pl
Created February 27, 2013 04:16
Gist at Android
print 'hello world !'
@yhyacinth
yhyacinth / gist:6505994
Created September 10, 2013 07:16
shortest factorial
f(a){return a-1?a*f(a-1):1;};main(){printf("%d",f(3));}
@yhyacinth
yhyacinth / gist:6506000
Created September 10, 2013 07:17
elapsed time
#include <time.h>
clock_t start_time, end_time;
start_time=clock();
end_time=clock();
printf("Time : %f\n", ((double)(end_time-start_time)) / CLOCKS_PER_SEC);