結果
問題 | No.311 z in FizzBuzzString |
ユーザー |
|
提出日時 | 2018-11-21 06:06:07 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,500 ms |
コード長 | 261 bytes |
コンパイル時間 | 1,355 ms |
コンパイル使用メモリ | 165,592 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-24 22:13:52 |
合計ジャッジ時間 | 1,830 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main(){ios::sync_with_stdio(false);cin.tie(0);long long n; cin >> n;long long three = (n / 3) * 2;long long five = (n / 5) * 2;cout << three + five << endl;return 0;}