結果

問題 No.388 階段 (1)
ユーザー KuraKura
提出日時 2019-09-22 13:01:29
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 7,730 bytes
コンパイル時間 3,589 ms
コンパイル使用メモリ 110,076 KB
実行使用メモリ 24,048 KB
最終ジャッジ日時 2023-10-19 07:10:20
合計ジャッジ時間 4,692 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

//aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaadaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
using System;
using System.IO;
class Start{
  static void Main(){var sw=new StreamWriter(Console.OpenStandardOutput()){AutoFlush=false};Console.SetOut(sw);
    long a,b;Lin(out a,out b);
    Lout(a/b+1);
  Console.Out.Flush();}
  static void Lin<T>(out T a){
    if(typeof(T)==typeof(long))a=(T)(object)long.Parse(Console.ReadLine());
    else if(typeof(T)==typeof(string))a=(T)(object)Console.ReadLine();
    else if(typeof(T)==typeof(char))a=(T)(object)Console.ReadLine()[0];
    else a=(T)(object)double.Parse(Console.ReadLine());
  }
  static void Lin<T,U>(out T a,out U b){
    string[] c=Console.ReadLine().Split(' ');
    if(typeof(T)==typeof(long))a=(T)(object)long.Parse(c[0]);
    else if(typeof(T)==typeof(string))a=(T)(object)c[0];
    else if(typeof(T)==typeof(char))a=(T)(object)c[0][0];
    else a=(T)(object)double.Parse(c[0]);
    if(typeof(U)==typeof(long))b=(U)(object)long.Parse(c[1]);
    else if(typeof(U)==typeof(string))b=(U)(object)c[1];
    else if(typeof(U)==typeof(char))b=(U)(object)c[1][0];
    else b=(U)(object)double.Parse(c[1]);
  }
  static void Lin<T,U,V>(out T a,out U b,out V d){
    string[] c=Console.ReadLine().Split(' ');
    if(typeof(T)==typeof(long))a=(T)(object)long.Parse(c[0]);
    else if(typeof(T)==typeof(string))a=(T)(object)c[0];
    else if(typeof(T)==typeof(char))a=(T)(object)c[0][0];
    else a=(T)(object)double.Parse(c[0]);
    if(typeof(U)==typeof(long))b=(U)(object)long.Parse(c[1]);
    else if(typeof(U)==typeof(string))b=(U)(object)c[1];
    else if(typeof(U)==typeof(char))b=(U)(object)c[1][0];
    else b=(U)(object)double.Parse(c[1]);
    if(typeof(V)==typeof(long))d=(V)(object)long.Parse(c[2]);
    else if(typeof(V)==typeof(string))d=(V)(object)c[2];
    else if(typeof(V)==typeof(char))d=(V)(object)c[2][0];
    else d=(V)(object)double.Parse(c[2]);
  }
  static void Lin<T,U,V,W>(out T a,out U b,out V d,out W e){
    string[] c=Console.ReadLine().Split(' ');
    if(typeof(T)==typeof(long))a=(T)(object)long.Parse(c[0]);
    else if(typeof(T)==typeof(string))a=(T)(object)c[0];
    else if(typeof(T)==typeof(char))a=(T)(object)c[0][0];
    else a=(T)(object)double.Parse(c[0]);
    if(typeof(U)==typeof(long))b=(U)(object)long.Parse(c[1]);
    else if(typeof(U)==typeof(string))b=(U)(object)c[1];
    else if(typeof(U)==typeof(char))b=(U)(object)c[1][0];
    else b=(U)(object)double.Parse(c[1]);
    if(typeof(V)==typeof(long))d=(V)(object)long.Parse(c[2]);
    else if(typeof(V)==typeof(string))d=(V)(object)c[2];
    else if(typeof(V)==typeof(char))d=(V)(object)c[2][0];
    else d=(V)(object)double.Parse(c[2]);
    if(typeof(W)==typeof(long))e=(W)(object)long.Parse(c[3]);
    else if(typeof(W)==typeof(string))e=(W)(object)c[3];
    else if(typeof(W)==typeof(char))e=(W)(object)c[3][0];
    else e=(W)(object)double.Parse(c[3]);
  }
  static void Lin<T,U,V,W,X>(out T a,out U b,out V d,out W e,out X f){
    string[] c=Console.ReadLine().Split(' ');
    if(typeof(T)==typeof(long))a=(T)(object)long.Parse(c[0]);
    else if(typeof(T)==typeof(string))a=(T)(object)c[0];
    else if(typeof(T)==typeof(char))a=(T)(object)c[0][0];
    else a=(T)(object)double.Parse(c[0]);
    if(typeof(U)==typeof(long))b=(U)(object)long.Parse(c[1]);
    else if(typeof(U)==typeof(string))b=(U)(object)c[1];
    else if(typeof(U)==typeof(char))b=(U)(object)c[1][0];
    else b=(U)(object)double.Parse(c[1]);
    if(typeof(V)==typeof(long))d=(V)(object)long.Parse(c[2]);
    else if(typeof(V)==typeof(string))d=(V)(object)c[2];
    else if(typeof(V)==typeof(char))d=(V)(object)c[2][0];
    else d=(V)(object)double.Parse(c[2]);
    if(typeof(W)==typeof(long))e=(W)(object)long.Parse(c[3]);
    else if(typeof(W)==typeof(string))e=(W)(object)c[3];
    else if(typeof(W)==typeof(char))e=(W)(object)c[3][0];
    else e=(W)(object)double.Parse(c[3]);
    if(typeof(X)==typeof(long))f=(X)(object)long.Parse(c[4]);
    else if(typeof(X)==typeof(string))f=(X)(object)c[4];
    else if(typeof(X)==typeof(char))f=(X)(object)c[4][0];
    else f=(X)(object)double.Parse(c[4]);
  }
  static void Lin<T,U,V,W,X,Y>(out T a,out U b,out V d,out W e,out X f,out Y g){
    string[] c=Console.ReadLine().Split(' ');
    if(typeof(T)==typeof(long))a=(T)(object)long.Parse(c[0]);
    else if(typeof(T)==typeof(string))a=(T)(object)c[0];
    else if(typeof(T)==typeof(char))a=(T)(object)c[0][0];
    else a=(T)(object)double.Parse(c[0]);
    if(typeof(U)==typeof(long))b=(U)(object)long.Parse(c[1]);
    else if(typeof(U)==typeof(string))b=(U)(object)c[1];
    else if(typeof(U)==typeof(char))b=(U)(object)c[1][0];
    else b=(U)(object)double.Parse(c[1]);
    if(typeof(V)==typeof(long))d=(V)(object)long.Parse(c[2]);
    else if(typeof(V)==typeof(string))d=(V)(object)c[2];
    else if(typeof(V)==typeof(char))d=(V)(object)c[2][0];
    else d=(V)(object)double.Parse(c[2]);
    if(typeof(W)==typeof(long))e=(W)(object)long.Parse(c[3]);
    else if(typeof(W)==typeof(string))e=(W)(object)c[3];
    else if(typeof(W)==typeof(char))e=(W)(object)c[3][0];
    else e=(W)(object)double.Parse(c[3]);
    if(typeof(X)==typeof(long))f=(X)(object)long.Parse(c[4]);
    else if(typeof(X)==typeof(string))f=(X)(object)c[4];
    else if(typeof(X)==typeof(char))f=(X)(object)c[4][0];
    else f=(X)(object)double.Parse(c[4]);
    if(typeof(Y)==typeof(long))g=(Y)(object)long.Parse(c[5]);
    else if(typeof(Y)==typeof(string))g=(Y)(object)c[5];
    else if(typeof(Y)==typeof(char))g=(Y)(object)c[5][0];
    else g=(Y)(object)double.Parse(c[5]);
  }
  static void Lin<T,U,V,W,X,Y,Z>(out T a,out U b,out V d,out W e,out X f,out Y g,out Z h){
    string[] c=Console.ReadLine().Split(' ');
    if(typeof(T)==typeof(long))a=(T)(object)long.Parse(c[0]);
    else if(typeof(T)==typeof(string))a=(T)(object)c[0];
    else if(typeof(T)==typeof(char))a=(T)(object)c[0][0];
    else a=(T)(object)double.Parse(c[0]);
    if(typeof(U)==typeof(long))b=(U)(object)long.Parse(c[1]);
    else if(typeof(U)==typeof(string))b=(U)(object)c[1];
    else if(typeof(U)==typeof(char))b=(U)(object)c[1][0];
    else b=(U)(object)double.Parse(c[1]);
    if(typeof(V)==typeof(long))d=(V)(object)long.Parse(c[2]);
    else if(typeof(V)==typeof(string))d=(V)(object)c[2];
    else if(typeof(V)==typeof(char))d=(V)(object)c[2][0];
    else d=(V)(object)double.Parse(c[2]);
    if(typeof(W)==typeof(long))e=(W)(object)long.Parse(c[3]);
    else if(typeof(W)==typeof(string))e=(W)(object)c[3];
    else if(typeof(W)==typeof(char))e=(W)(object)c[3][0];
    else e=(W)(object)double.Parse(c[3]);
    if(typeof(X)==typeof(long))f=(X)(object)long.Parse(c[4]);
    else if(typeof(X)==typeof(string))f=(X)(object)c[4];
    else if(typeof(X)==typeof(char))f=(X)(object)c[4][0];
    else f=(X)(object)double.Parse(c[4]);
    if(typeof(Y)==typeof(long))g=(Y)(object)long.Parse(c[5]);
    else if(typeof(Y)==typeof(string))g=(Y)(object)c[5];
    else if(typeof(Y)==typeof(char))g=(Y)(object)c[5][0];
    else g=(Y)(object)double.Parse(c[5]);
    if(typeof(Z)==typeof(long))h=(Z)(object)long.Parse(c[6]);
    else if(typeof(Z)==typeof(string))h=(Z)(object)c[6];
    else if(typeof(Z)==typeof(char))h=(Z)(object)c[6][0];
    else h=(Z)(object)double.Parse(c[6]);
  }
  static void Lout(string a){Console.WriteLine(a);}
  static void Out(string a){Console.Write(a);}
  static void Lout(long a){Console.WriteLine(a);}
  static void Out(long a){Console.Write(a);}
  static void Lout(double a){Console.WriteLine(a);}
  static void Out(double a){Console.Write(a);}
  static void Lout(char a){Console.WriteLine(a);}
  static void Out(char a){Console.Write(a);}
  static void Swap<T>(ref T a,ref T b){T c=a;a=b;b=c;}
}
0