Cod sursa(job #42842)
Utilizator | Data | 29 martie 2007 16:08:03 | |
---|---|---|---|
Problema | Zebughil | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.29 kb |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int n;
int main()
{
freopen("zebughil.in", "r", stdin);
freopen("zebughil.out", "w", stdout);
scanf("%d\n", &n);
n = rand() % n;
printf("%d\n", n);
fclose(stdin);
fclose(stdout);
return 0;
}