結果
| 問題 | No.785 色食い虫 |
| コンテスト | |
| ユーザー |
kou_kkk
|
| 提出日時 | 2025-08-23 21:32:11 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 14 ms / 2,000 ms |
| + 492µs | |
| コード長 | 534 bytes |
| 記録 | |
| コンパイル時間 | 3,120 ms |
| コンパイル使用メモリ | 110,908 KB |
| 実行使用メモリ | 18,304 KB |
| 最終ジャッジ日時 | 2026-07-14 10:51:17 |
| 合計ジャッジ時間 | 5,568 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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.
ソースコード
using System;
class Program
{
static void Main()
{
var r = Console.ReadLine();
var g = Console.ReadLine();
var b = Console.ReadLine();
Func<string, long> fn = s =>
{
long result = 16;
if (s != "NONE")
result -= (s.Length + 1) >> 1;
return result;
};
long n1 = fn(r);
long n2 = fn(g);
long n3 = fn(b);
var ans = n1 * n2 * n3;
ans *= ans;
Console.WriteLine(ans);
}
}
kou_kkk