結果
問題 | No.1461 しあはせや歩みゆく? |
ユーザー | umezo |
提出日時 | 2021-04-02 21:23:17 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 275 bytes |
コンパイル時間 | 2,667 ms |
コンパイル使用メモリ | 190,928 KB |
最終ジャッジ日時 | 2025-01-20 08:10:39 |
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 34 |
ソースコード
#define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; #include<bits/stdc++.h> using namespace std; int main(){ ll n; cin>>n; if(n==1) cout<<1<<endl; else if(n==2) cout<<2<<endl; else cout<<5*n-12<<endl; return 0; }