Cod sursa(job #115308)
Utilizator | Data | 16 decembrie 2007 12:07:53 | |
---|---|---|---|
Problema | Rays | Scor | 0 |
Compilator | cpp | Status | done |
Runda | preONI 2008, Runda 2, Clasa a 10-a | Marime | 0.23 kb |
#include <stdio.h>
int main()
{
freopen("rays.in", "r", stdin);
#ifndef _SCREEN_
freopen("rays.out", "w", stdout);
#endif
int N;
scanf("%d\n", &N);
if (N < 7) printf("%d\n", N / 2);
else {
printf("7\n");
}
return 0;
}