CSP2017-09

  CSP201709-1 打酱油

 

 

 

 

 1 //
 2 //  main.cpp
 3 //  CSP201709-1 打酱油
 4 //
 5 //  Created by sylvia on 2021/11/6.
 6 //  Copyright © 2021 apple. All rights reserved.
 7 //
 8 
 9 #include <iostream>
10 using namespace std;
11 int main(){
12     int n,ans=0,a;
13     cin>>n;
14     n/=10;
15     a=n/5;
16     ans+=a*7;
17     n-=a*5;
18     a=n/3;
19     ans+=a*4;
20     ans+=n-a*3;
21     cout<<ans<<endl;
22     return 0;
23 }
View Code

 

posted @ 2021-11-06 14:27  Sylvia_lee  阅读(22)  评论(0编辑  收藏  举报