結果
| 問題 | No.1461 しあはせや歩みゆく? | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2021-04-02 22:18:34 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 642 bytes | 
| コンパイル時間 | 1,533 ms | 
| コンパイル使用メモリ | 164,772 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-12-23 19:51:42 | 
| 合計ジャッジ時間 | 2,682 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 34 | 
ソースコード
//ethan_h
#include<bits/stdc++.h>
using namespace std;
#define ll long long
/*void test(){
ll n,t;cin>>n>>t;
ll s=0;
//string s;cin>>s;
vector<ll>a(n);
for(ll i=0;i<n;i++){
cin>>a[i];
s+=a[i];}
if(s/t){
        int p;
p=s/t;
t-=(p*t);
for(ll i=0;i<n;i++){
    if(t>=a[i]){
        p++;
        t-=a[i];
    }
}
cout<<p<<endl;
}
else{
        int p=0;
    for(ll i=0;i<n;i++){
        if(t>=a[i]){
                p++;
         t-=a[i];
        }
    }
    cout<<p<<endl;
}
*/
int main(){
ios_base::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
ll n;cin>>n;
ll ans=0;
if(n<=3){
    cout<<n;
}
else{
    cout<<5*n-12;
}
return 0;}
            
            
            
        