結果

問題 No.316 もっと刺激的なFizzBuzzをください
ユーザー vjudge1
提出日時 2025-02-05 03:45:12
言語 C++17(gcc12)
(gcc 12.3.0 + boost 1.87.0)
結果
TLE  
実行時間 -
コード長 448 bytes
コンパイル時間 5,290 ms
コンパイル使用メモリ 84,392 KB
実行使用メモリ 16,968 KB
最終ジャッジ日時 2025-02-05 03:46:10
合計ジャッジ時間 56,442 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1 TLE * 3
other WA * 12 TLE * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int calProd(int a, int b, int c, int N)
{
    int count = 0;
    int product = 1;
    while (product <= N)
    {
        product = a * b * c;
        
        count++;
    }
    return count;
}

int main()
{
    int N;
    cin >> N;

    int num1, num2, num3;
    cin >> num1;
    cin >> num2;
    cin >> num3;

    int product = calProd(num1, num2, num3, N);

    cout << product << endl;

    return 0;
}
0