結果

問題 No.311 z in FizzBuzzString
ユーザー weaken
提出日時 2020-10-14 03:51:00
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,500 ms
コード長 323 bytes
コンパイル時間 1,831 ms
コンパイル使用メモリ 192,516 KB
最終ジャッジ日時 2025-01-15 07:11:57
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define fastIO (cin.tie(0), cout.tie(0), ios::sync_with_stdio(false))
#define llint long long int
using namespace std;

int main() {
  fastIO;

  llint n;
  cin >> n;

  llint mod3 = n / 3 * 2;
  llint mod5 = n / 5 * 2;
  // llint mod15 = n / 15 * 4;

  cout << mod3 + mod5 << '\n';

  return 0;
}
0