結果
問題 | No.311 z in FizzBuzzString |
ユーザー |
|
提出日時 | 2024-03-31 18:47:07 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,500 ms |
コード長 | 299 bytes |
コンパイル時間 | 4,015 ms |
コンパイル使用メモリ | 249,944 KB |
最終ジャッジ日時 | 2025-02-20 18:13:39 |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> using namespace std; using namespace atcoder; using ll = long long; using ld = long double; ll n, ans; int main() { cin >> n; ans += (n / 15) * 4; ans += (n / 3 - n / 15) * 2; ans += (n / 5 - n / 15) * 2; cout << ans << endl; return 0; }