Skip to content

Instantly share code, notes, and snippets.

@shohan4556
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save shohan4556/9bbcffd93803085cb32b to your computer and use it in GitHub Desktop.

Select an option

Save shohan4556/9bbcffd93803085cb32b to your computer and use it in GitHub Desktop.
URI 1016
#include<stdio.h>
int main()
{
int n=0,ans=0;
while(scanf("%d",&n)==1){
ans=(60*n)/30;
printf("%d minutos\n",ans); // formula : time= (input*60)/(Y-X)
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment