結果

問題 No.311 z in FizzBuzzString
ユーザー 5963
提出日時 2019-05-08 23:25:41
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 451 bytes
コンパイル時間 591 ms
コンパイル使用メモリ 83,636 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-24 22:18:23
合計ジャッジ時間 1,091 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <set>
#include <map>
#include <vector>
#include <algorithm>
#include <iomanip>
#include <climits>
#include <numeric>
#include <cmath>
#include <queue>
#include <sstream>
#include <string.h>
#include <bitset>
#include <stack>

using namespace std;
typedef long long ll;

int main(){
  int N;
  cin >> N;
  
  int c = N / 15;
  int a = N / 3 - c;
  int b = N / 5 - c;
  
  cout << (a + b) * 2 + c * 4 << endl;
  return 0;
}
0