Skip to content

Instantly share code, notes, and snippets.

@ariedro
Created December 2, 2018 04:52
Show Gist options
  • Save ariedro/e7408166ff8170b6103bf1498cf31641 to your computer and use it in GitHub Desktop.
Save ariedro/e7408166ff8170b6103bf1498cf31641 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(){
for (int y = 1900; y < 2100; y++)
for (int m = 1; m < 13; m++)
for (int d = 1; d < 32; d++)
for (int h = 0; h < 24; h++)
if (d * m * h == y) printf("%d-%d-%d\t%d:00\n",d,m,y,h);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment