結果

問題 No.1461 しあはせや歩みゆく?
ユーザー kekenx
提出日時 2024-01-09 18:55:11
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 319 bytes
コンパイル時間 634 ms
コンパイル使用メモリ 71,832 KB
最終ジャッジ日時 2025-02-18 16:55:37
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 34
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cassert>
#include <vector>
#include <algorithm>

using namespace std;

int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);

  long long N; cin >> N;
  if (N <= 3) {
    cout << N << endl;
    return 0;
  }
  
  long long t = (N - 3) * 5;
  cout << t + 3 << endl;
  return 0;
}
0