結果
| 問題 | 
                            No.509 塗りつぶしツール
                             | 
                    
| コンテスト | |
| ユーザー | 
                             bluemegane
                         | 
                    
| 提出日時 | 2018-09-13 15:16:44 | 
| 言語 | C#(csc)  (csc 3.9.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 355 bytes | 
| コンパイル時間 | 2,005 ms | 
| コンパイル使用メモリ | 108,892 KB | 
| 実行使用メモリ | 25,936 KB | 
| 最終ジャッジ日時 | 2024-07-01 04:25:41 | 
| 合計ジャッジ時間 | 3,394 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 11 WA * 16 | 
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
public class Hello
{
    public static void Main()
    {
        var s = Console.ReadLine().Trim();
        var sL = s.Length;
        var ans = 0;
        foreach (var x in s)
            if (x == '0' | x == '4' | x == '6' | x == '9') ans += 1;
            else if (x == '8') ans += 2;
        Console.WriteLine(ans + 1 + 2 * sL);
    }
}
            
            
            
        
            
bluemegane