結果
| 問題 |
No.188 HAPPY DAY
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-05 17:36:50 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
MLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 493 bytes |
| コンパイル時間 | 12,795 ms |
| コンパイル使用メモリ | 171,880 KB |
| 実行使用メモリ | 188,520 KB |
| 最終ジャッジ日時 | 2024-07-04 19:06:57 |
| 合計ジャッジ時間 | 8,223 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | MLE * 1 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (90 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using System;
using System.Linq;
class Program
{
static void Main(string[] args)
{
var happyDay = 0;
var days = new int[] { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
foreach (var month in Enumerable.Range(1, 12))
{
foreach (var day in Enumerable.Range(1, days[month]))
{
if (month == (day % 10) + day / 10) happyDay++;
}
}
Console.WriteLine(happyDay.ToString());
}
}