結果
| 問題 |
No.46 はじめのn歩
|
| コンテスト | |
| ユーザー |
Kura
|
| 提出日時 | 2019-09-21 22:36:53 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 5,000 ms |
| コード長 | 1,144 bytes |
| コンパイル時間 | 2,096 ms |
| コンパイル使用メモリ | 103,424 KB |
| 実行使用メモリ | 17,792 KB |
| 最終ジャッジ日時 | 2024-09-19 03:10:21 |
| 合計ジャッジ時間 | 2,881 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
//aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaadaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
using System;
class Start{
static void Main(){
long a,b;Lin(out a,out b);
Console.WriteLine((b+a-1)/a);
}
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){
var 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 Swap<T>(ref T a,ref T b){T c=a;a=b;b=c;}
}
Kura