結果

問題 No.316 もっと刺激的なFizzBuzzをください
ユーザー aaaaaaiu
提出日時 2019-08-12 21:56:11
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 197 bytes
コンパイル時間 1,867 ms
コンパイル使用メモリ 194,032 KB
最終ジャッジ日時 2025-01-07 11:47:57
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 3
other AC * 19 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main() {
    int n,a,b,c;
    cin>>n>>a>>b>>c;
    cout<<n/a+n/b+n/c-n/lcm(a,b)-n/lcm(a,c)-n/lcm(b,c)<<endl;
    return 0;
}
0