結果
問題 | No.311 z in FizzBuzzString |
ユーザー |
|
提出日時 | 2016-02-09 23:05:03 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,500 ms |
コード長 | 308 bytes |
コンパイル時間 | 430 ms |
コンパイル使用メモリ | 58,084 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-24 21:33:33 |
合計ジャッジ時間 | 920 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <iostream> #include "math.h" using namespace std; int main() { // insert code here... long long n; long long threeNum,fiveNum; cin >> n; threeNum = n/3; fiveNum = n/5; long long ans = 2 * (threeNum + fiveNum); cout << ans <<endl; return 0; }