結果

問題 No.785 色食い虫
ユーザー keymoon
提出日時 2019-02-23 22:03:49
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 28 ms / 2,000 ms
コード長 701 bytes
コンパイル時間 883 ms
コンパイル使用メモリ 114,912 KB
実行使用メモリ 26,844 KB
最終ジャッジ日時 2024-12-14 14:30:24
合計ジャッジ時間 2,648 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 28
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using Debug = System.Diagnostics.Debug;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;

class Ph
{
    static void Main()
    {
        int r = (16 - Console.ReadLine().Split(',').Count(x => x.Length == 1));
        int g = (16 - Console.ReadLine().Split(',').Count(x => x.Length == 1));
        int b = (16 - Console.ReadLine().Split(',').Count(x => x.Length == 1));
        Console.WriteLine(r * r * g * g * b * b);
    }
}
0