結果

問題 No.1461 しあはせや歩みゆく?
ユーザー shiomusubi496
提出日時 2021-04-02 21:38:11
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 192 bytes
コンパイル時間 1,785 ms
コンパイル使用メモリ 165,000 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-23 18:37:26
合計ジャッジ時間 2,694 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 34
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
#define int long long
using namespace std;
signed main(){
    int N;cin>>N;
    if(N==1)cout<<1<<endl;
    else if(N==2)cout<<2<<endl;
    else cout<<(N-3)*5+3<<endl;
}
0