OJ-Problems-Source/HDOJ/1703_autoAC.cpp
2016-08-17 15:12:28 +08:00

13 lines
262 B
C++

#include<stdio.h>
int main(){
int n;
while(scanf("%d",&n)&&n){
if(n==1||n==2){
printf("%d\n",(n-1)*5); continue;
}
else if(n==3) printf("15\n");
else printf("%d\n",(n*2-4)*5);
}
return 0;
}