mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
997ec50f19
1700-1799
13 lines
262 B
C++
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;
|
|
}
|