結果

問題 No.299 蟻本が読めない
ユーザー LanatusLanatus
提出日時 2024-01-15 23:44:33
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 688 bytes
コンパイル時間 1,354 ms
コンパイル使用メモリ 131,132 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2024-01-15 23:44:37
合計ジャッジ時間 2,018 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
6,676 KB
testcase_01 AC 1 ms
6,676 KB
testcase_02 AC 2 ms
6,676 KB
testcase_03 AC 2 ms
6,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <exception>
#include <functional>
#include <iomanip>
#include <ios>
#include <iostream>
#include <map>
#include <memory>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>

using namespace std;

int main(void) {
  long long n;
  cin >> n;

  long long a = 316;
  long long d = 52;
  long long ans = a + (n - 1) * d;

  cout << ans << endl;
  return 0;
}
0