結果
問題 | No.188 HAPPY DAY |
ユーザー |
|
提出日時 | 2018-04-20 03:14:43 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 21 ms / 1,000 ms |
コード長 | 811 bytes |
コンパイル時間 | 756 ms |
コンパイル使用メモリ | 107,732 KB |
実行使用メモリ | 17,024 KB |
最終ジャッジ日時 | 2024-06-27 05:00:16 |
合計ジャッジ時間 | 1,152 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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(string[] args){int count = 0;for(int i = 1; i <= 11; i++){for(int j = 0; j <= 3; j++){if (j > i) break;for(int m = 0; m <= 9; m++){if (j == 3 && m >= 2) break;else if (i == 4 && j == 3 && m == 1) break;else if (i == j + m){count++;break;}}}}Console.WriteLine(count);}}