結果
問題 | No.188 HAPPY DAY |
ユーザー | しらゆき |
提出日時 | 2015-11-17 21:20:58 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 53 ms / 1,000 ms |
コード長 | 462 bytes |
コンパイル時間 | 3,245 ms |
コンパイル使用メモリ | 101,960 KB |
実行使用メモリ | 20,468 KB |
最終ジャッジ日時 | 2023-08-29 03:31:25 |
合計ジャッジ時間 | 3,759 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
コンパイルメッセージ
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); } }