結果
| 問題 | 
                            No.637 X: Yet Another FizzBuzz Problem
                             | 
                    
| コンテスト | |
| ユーザー | 
                             mencotton
                         | 
                    
| 提出日時 | 2018-01-26 22:21:48 | 
| 言語 | C#(csc)  (csc 3.9.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 27 ms / 1,000 ms | 
| コード長 | 514 bytes | 
| コンパイル時間 | 700 ms | 
| コンパイル使用メモリ | 110,568 KB | 
| 実行使用メモリ | 19,072 KB | 
| 最終ジャッジ日時 | 2024-06-28 18:46:00 | 
| 合計ジャッジ時間 | 2,338 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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