結果
| 問題 |
No.46 はじめのn歩
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-24 09:50:57 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 343 bytes |
| コンパイル時間 | 776 ms |
| コンパイル使用メモリ | 107,708 KB |
| 実行使用メモリ | 25,688 KB |
| 最終ジャッジ日時 | 2024-09-24 09:09:44 |
| 合計ジャッジ時間 | 1,609 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 10 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
public class Program{
static void Main(){
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
int ans;
if(b % a != 0){
ans = (b / a) + 1;
}
else{
ans = b / a;
}
Console.WriteLine(ans);
}
}