結果

問題 No.316 もっと刺激的なFizzBuzzをください
ユーザー hum_op
提出日時 2018-01-02 18:51:41
言語 C
(gcc 13.3.0)
結果
TLE  
実行時間 -
コード長 273 bytes
コンパイル時間 118 ms
コンパイル使用メモリ 28,672 KB
実行使用メモリ 15,296 KB
最終ジャッジ日時 2024-12-23 01:12:10
合計ジャッジ時間 44,072 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 TLE * 1
other AC * 15 TLE * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main(void) {
	long long int i = 1, count = 0, N;
	long long int a, b, c;
	
	scanf("%ld", &N);
	scanf("%ld %ld %ld", &a,&b,&c);
	
	for(; i <= N; i++){
		if(!(i % a) || !(i % b) || !(i % c)){
			count++;
		}
	}
	
	printf("%ld\n", count);
	return 0;
}
0