結果
| 問題 |
No.1027 U+1F4A0
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-11-06 22:42:59 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
AC
|
| 実行時間 | 69 ms / 2,000 ms |
| コード長 | 649 bytes |
| コンパイル時間 | 8,345 ms |
| コンパイル使用メモリ | 171,040 KB |
| 実行使用メモリ | 189,912 KB |
| 最終ジャッジ日時 | 2025-11-06 22:43:10 |
| 合計ジャッジ時間 | 9,882 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 22 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (144 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;
using System.Globalization;
class Program
{
static int NN => int.Parse(ReadLine());
static long[] NList => ReadLine().Split().Select(long.Parse).ToArray();
static long[][] NArr(long n) => Enumerable.Repeat(0, (int)n).Select(_ => NList).ToArray();
public static void Main()
{
Solve();
}
static void Solve()
{
var c = NList;
if (c[0] * 2 == c[1] || c[0] == c[1]) WriteLine(4);
else if (c[0] * 2 > c[1] && c[0] < c[1]) WriteLine(8);
else WriteLine(0);
}
}