結果

問題 No.785 色食い虫
ユーザー keymoon
提出日時 2019-02-23 22:02:18
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 707 bytes
コンパイル時間 883 ms
コンパイル使用メモリ 108,836 KB
実行使用メモリ 28,888 KB
最終ジャッジ日時 2024-12-14 14:27:10
合計ジャッジ時間 2,708 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other AC * 1 WA * 27
権限があれば一括ダウンロードができます
コンパイルメッセージ
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().Replace("NONE", "").Split(',').Count());
        int g = (16 - Console.ReadLine().Replace("NONE", "").Split(',').Count());
        int b = (16 - Console.ReadLine().Replace("NONE", "").Split(',').Count());
        Console.WriteLine(r * r + g * g + b * b);
    }
}
0