結果
| 問題 | No.842 初詣 |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2026-04-15 22:40:36 |
| 言語 | C# (.NET 10.0.402 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 32 ms / 2,000 ms |
| + 432µs | |
| コード長 | 851 bytes |
| 記録 | |
| コンパイル時間 | 9,050 ms |
| コンパイル使用メモリ | 173,328 KB |
| 実行使用メモリ | 32,512 KB |
| 最終ジャッジ日時 | 2026-10-12 06:21:22 |
| 合計ジャッジ時間 | 7,329 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (160 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net10.0/main.dll main -> /home/judge/data/code/bin/Release/net10.0/publish/
ソースコード
using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;
using System.Runtime.Intrinsics.Arm;
class Program
{
static int NN => int.Parse(ReadLine());
static int[] NList => ReadLine().Split().Select(int.Parse).ToArray();
static int[][] NArr(long n) => Enumerable.Repeat(0, (int)n).Select(_ => NList).ToArray();
public static void Main()
{
Solve();
}
static void Solve()
{
var c = NList;
var t = Math.Min(c[0], c[6] / 500);
c[6] -= Math.Min(c[0], c[6] / 500) * 500;
c[6] -= Math.Min(c[1], c[6] / 100) * 100;
c[6] -= Math.Min(c[2], c[6] / 50) * 50;
c[6] -= Math.Min(c[3], c[6] / 10) * 10;
c[6] -= Math.Min(c[4], c[6] / 5) * 5;
c[6] -= Math.Min(c[5], c[6]);
WriteLine(c[6] == 0 ? "YES" : "NO");
}
}