結果
| 問題 | No.637 X: Yet Another FizzBuzz Problem |
| コンテスト | |
| ユーザー |
mencotton
|
| 提出日時 | 2018-01-26 22:21:48 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 18 ms / 1,000 ms |
| コード長 | 514 bytes |
| 記録 | |
| コンパイル時間 | 562 ms |
| コンパイル使用メモリ | 112,296 KB |
| 実行使用メモリ | 28,028 KB |
| 最終ジャッジ日時 | 2026-03-17 19:38:40 |
| 合計ジャッジ時間 | 1,970 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 30 |
コンパイルメッセージ
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;
namespace _637
{
class Program
{
static void Main(string[] args)
{
int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
int ret = 0;
for (int i = 0; i < 5; i++)
{
if (x[i] % 15 == 0) ret += 8;
else if (x[i] % 3 == 0 || x[i] % 5 == 0) ret += 4;
else ret += x[i].ToString().Length;
}
Console.WriteLine(ret);
}
}
}
mencotton