結果
問題 | No.46 はじめのn歩 |
ユーザー | Salvia0911 |
提出日時 | 2023-11-05 13:54:27 |
言語 | C# (.NET 8.0.203) |
結果 |
AC
|
実行時間 | 58 ms / 5,000 ms |
コード長 | 1,683 bytes |
コンパイル時間 | 7,473 ms |
コンパイル使用メモリ | 158,724 KB |
実行使用メモリ | 176,548 KB |
最終ジャッジ日時 | 2023-11-05 13:54:51 |
合計ジャッジ時間 | 8,824 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 58 ms
30,928 KB |
testcase_01 | AC | 58 ms
30,928 KB |
testcase_02 | AC | 57 ms
30,928 KB |
testcase_03 | AC | 57 ms
30,928 KB |
testcase_04 | AC | 57 ms
30,904 KB |
testcase_05 | AC | 56 ms
30,904 KB |
testcase_06 | AC | 56 ms
30,904 KB |
testcase_07 | AC | 57 ms
30,928 KB |
testcase_08 | AC | 57 ms
30,904 KB |
testcase_09 | AC | 58 ms
176,548 KB |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (100 ms)。 MSBuild のバージョン 17.7.3+8ec440e68 (.NET) main -> /home/judge/data/code/bin/Release/net7.0/main.dll main -> /home/judge/data/code/bin/Release/net7.0/publish/
ソースコード
using System; using System.Collections.Generic; public class InputStrorage { public long N; public long a; public long b; public long[] Array; } public static class InputHandler { public static void ReadInput(InputStrorage input) { string[] str = Console.ReadLine().Split(); input.a = int.Parse(str[0]); input.b = int.Parse(str[1]); } } namespace GeneralLibs { public class Compare { public static long ReturnMax(long a, long b) { if (a > b) return a; else return b; } public static long ReturnMax(long[] a) { long max = long.MinValue; for (int i = 0; i < a.Length; i++) { if (a[i] > max) max = a[i]; } return max; } } public class ShowValues { public static void ShowArray1D(long[] a, string str = "default") { Console.WriteLine(str); for (int i = 0; i < a.Length; i++) { Console.Write("{0} ", a[i]); } Console.WriteLine(); Console.WriteLine(str); } public static void ShowValue(long a, string str = "default") { Console.WriteLine("{0} : {1}", a, str); } } } public class SpecificLibs { } static class No46 { static void Main() { InputStrorage input = new InputStrorage(); InputHandler.ReadInput(input); long ans; if (input.b % input.a == 0) ans = input.b / input.a; else ans = (long)(input.b / input.a) + 1; Console.WriteLine(ans); } }