結果
| 問題 | 
                            No.316 もっと刺激的なFizzBuzzをください
                             | 
                    
| コンテスト | |
| ユーザー | 
                             kmtrc130
                         | 
                    
| 提出日時 | 2017-06-08 11:47:46 | 
| 言語 | C#(csc)  (csc 3.9.0)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 469 bytes | 
| コンパイル時間 | 1,296 ms | 
| コンパイル使用メモリ | 111,204 KB | 
| 実行使用メモリ | 37,712 KB | 
| 最終ジャッジ日時 | 2024-09-22 13:27:16 | 
| 合計ジャッジ時間 | 5,556 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | -- * 4 | 
| other | TLE * 1 -- * 32 | 
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Collections.Generic;
using System.Linq;
class Program
{
    static void Main()
    {
        int N = int.Parse(Console.ReadLine());
        int[] abc = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
        int ansCnt = 0;
        for (int i = 1; i <= N; i++)
        {
            if (i % abc[0] == 0 || i % abc[1] == 0 || i % abc[2] == 0)
            { ansCnt++; }
        }
        Console.WriteLine(ansCnt);
    }
}
            
            
            
        
            
kmtrc130