結果
| 問題 | No.188 HAPPY DAY | 
| コンテスト | |
| ユーザー |  しらゆき | 
| 提出日時 | 2015-11-17 21:20:58 | 
| 言語 | C#(csc) (csc 3.9.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 23 ms / 1,000 ms | 
| コード長 | 462 bytes | 
| コンパイル時間 | 2,349 ms | 
| コンパイル使用メモリ | 102,784 KB | 
| 実行使用メモリ | 17,408 KB | 
| 最終ジャッジ日時 | 2024-12-30 20:47:08 | 
| 合計ジャッジ時間 | 2,876 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 | 
コンパイルメッセージ
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()
    {
        int cnt = 0;
        for (int i = 1; i <= 30; i++)
        {
            string s = i.ToString().PadLeft(2, '0');
            int a = int.Parse(Convert.ToString(s[0]));
            int b = int.Parse(Convert.ToString(s[1]));
            for (int j = 1; j <= 12; j++)
            {
                if (j == a + b) cnt++;
            }
        }
            Console.WriteLine(cnt);
        }
}
            
            
            
        