結果
| 問題 |
No.637 X: Yet Another FizzBuzz Problem
|
| コンテスト | |
| ユーザー |
nattoumaru
|
| 提出日時 | 2018-02-06 18:03:34 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 849 bytes |
| コンパイル時間 | 2,324 ms |
| コンパイル使用メモリ | 106,932 KB |
| 実行使用メモリ | 28,060 KB |
| 最終ジャッジ日時 | 2024-07-18 15:16:03 |
| 合計ジャッジ時間 | 4,033 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | AC * 4 WA * 26 |
コンパイルメッセージ
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;
using System.Text;
using System.Threading.Tasks;
namespace programPractice
{
class Program
{
static void Main(string[] args)
{
var date = Console.ReadLine().Split();
int[] iArray = new int[5];
int sum = 0;
for (int i = 0; i < 5; i++)
{
iArray[i] = Int32.Parse(date[i]);
if (iArray[i] % 15 == 0)
{
sum += 8;
}
else if (iArray[i] % 3 == 0 && iArray[i] % 5 == 0)
{
sum += 4;
}else
{
sum += date[i].Length;
}
}
Console.WriteLine(sum);
}
}
}
nattoumaru