結果
| 問題 | No.316 もっと刺激的なFizzBuzzをください |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-11-24 11:07:39 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
MLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 506 bytes |
| 記録 | |
| コンパイル時間 | 771 ms |
| コンパイル使用メモリ | 108,032 KB |
| 実行使用メモリ | 1,321,960 KB |
| 最終ジャッジ日時 | 2026-05-21 13:32:30 |
| 合計ジャッジ時間 | 7,528 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 4 |
| other | AC * 2 MLE * 2 -- * 29 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Linq;
using System.Collections.Generic;
public class yukicoder
{
public static void Main()
{
int n = int.Parse(Console.ReadLine());
int[] array = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
var MultipleList = new HashSet<int>();
for(int i = 0; i < array.Length; i++)
{
for(int j = 1; j <= n / array[i]; j++)
{
MultipleList.Add(j * array[i]);
}
}
Console.WriteLine(MultipleList.Count().ToString());
}
}