結果

問題 No.316 もっと刺激的なFizzBuzzをください
ユーザー vjudge1
提出日時 2025-02-05 01:30:03
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
TLE  
実行時間 -
コード長 209 bytes
コンパイル時間 853 ms
コンパイル使用メモリ 58,008 KB
実行使用メモリ 16,840 KB
最終ジャッジ日時 2025-02-05 01:30:42
合計ジャッジ時間 37,681 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 18 TLE * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
using namespace std;
int main(){
  int n,a,b,c;
  cin>>n>>a>>b>>c;
  int multple=0;
  for(int i=1;i<=n;i++){
    if(i%a==0 || i%b==0 || i%c==0){
      multple++;
    }
  }
  cout<<multple;
}
0