結果
問題 |
No.785 色食い虫
|
ユーザー |
![]() |
提出日時 | 2025-08-23 21:32:11 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 25 ms / 2,000 ms |
コード長 | 534 bytes |
コンパイル時間 | 4,580 ms |
コンパイル使用メモリ | 110,840 KB |
実行使用メモリ | 26,172 KB |
最終ジャッジ日時 | 2025-08-23 21:32:19 |
合計ジャッジ時間 | 6,726 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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); } }