結果

問題 No.46 はじめのn歩
ユーザー #ラス+#ラス+
提出日時 2019-11-06 07:52:40
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 58 ms / 5,000 ms
コード長 790 bytes
コンパイル時間 940 ms
コンパイル使用メモリ 61,684 KB
実行使用メモリ 22,784 KB
最終ジャッジ日時 2023-10-13 02:34:29
合計ジャッジ時間 2,041 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
22,724 KB
testcase_01 AC 57 ms
20,668 KB
testcase_02 AC 57 ms
22,772 KB
testcase_03 AC 57 ms
22,724 KB
testcase_04 AC 57 ms
20,832 KB
testcase_05 AC 57 ms
20,624 KB
testcase_06 AC 57 ms
22,784 KB
testcase_07 AC 57 ms
22,732 KB
testcase_08 AC 58 ms
22,620 KB
testcase_09 AC 57 ms
20,656 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.IO;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
class Start{
  static void Solve(){
  	var c=ReadLine().Split();
  	var a=long.Parse(c[0]);
  	var b=long.Parse(c[1]);
  	WriteLine((b+a-1)/a);
  }
  static void Main(){
    var sw=new StreamWriter(OpenStandardOutput()){AutoFlush=false};
    SetOut(sw);
    Solve();
    Out.Flush();
  }
  const long MOD=1000000007L;
  static void Swap<T>(ref T a,ref T b){T c=a;a=b;b=c;}
}
class Pair<T1,T2>:IComparable<Pair<T1,T2>>where T1:IComparable<T1>where T2:IComparable<T2>{
  public T1 F;public T2 S;
  public Pair(T1 f,T2 s){F=f;S=s;}
  public int CompareTo(Pair<T1,T2> p)=>F.CompareTo(p.F)!=0?F.CompareTo(p.F):S.CompareTo(p.S);
  public override string ToString()=>F+" "+S;
}
0