結果

問題 No.388 階段 (1)
ユーザー k-a-rgbk-a-rgb
提出日時 2023-08-15 15:03:25
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 337 bytes
コンパイル時間 777 ms
コンパイル使用メモリ 108,824 KB
実行使用メモリ 26,000 KB
最終ジャッジ日時 2024-05-03 02:23:15
合計ジャッジ時間 1,812 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 26 ms
23,820 KB
testcase_02 AC 25 ms
25,864 KB
testcase_03 AC 25 ms
24,076 KB
testcase_04 WA -
testcase_05 AC 25 ms
23,688 KB
testcase_06 AC 25 ms
23,984 KB
testcase_07 AC 25 ms
24,156 KB
testcase_08 AC 25 ms
24,036 KB
testcase_09 AC 25 ms
25,684 KB
testcase_10 WA -
testcase_11 AC 25 ms
24,036 KB
testcase_12 AC 25 ms
24,032 KB
testcase_13 AC 24 ms
23,900 KB
testcase_14 AC 25 ms
23,644 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
public class Program
{
    static void Main()
    {
		
		string s = Console.ReadLine();
		
        string[] t = s.Split(' ');
        long b = long.Parse(t[0]);
        long a = long.Parse(t[1]);
        
		if(b!=0 && b%a == 0 ){
			Console.WriteLine(b / a);
		}else{
			Console.WriteLine(b / a + 1);
		}        
		
    }
}
0