結果

問題 No.388 階段 (1)
ユーザー eringi103eringi103
提出日時 2016-10-20 14:31:08
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 475 bytes
コンパイル時間 2,041 ms
コンパイル使用メモリ 101,264 KB
実行使用メモリ 22,864 KB
最終ジャッジ日時 2023-08-15 08:52:28
合計ジャッジ時間 3,683 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
22,724 KB
testcase_01 AC 56 ms
22,636 KB
testcase_02 AC 56 ms
22,808 KB
testcase_03 AC 56 ms
22,692 KB
testcase_04 AC 56 ms
22,688 KB
testcase_05 AC 55 ms
18,684 KB
testcase_06 AC 56 ms
20,624 KB
testcase_07 AC 55 ms
20,728 KB
testcase_08 AC 56 ms
22,828 KB
testcase_09 AC 55 ms
22,704 KB
testcase_10 AC 56 ms
22,696 KB
testcase_11 AC 56 ms
20,680 KB
testcase_12 AC 56 ms
20,652 KB
testcase_13 AC 57 ms
22,864 KB
testcase_14 AC 55 ms
22,616 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 SF = Console.ReadLine();
    string S_ = "";
    string F_ = "";
    int S = 0;
    int F = 0;
    int result = 0;
    int i = 0;
    
    while(SF.Substring(i, 1) != " ")
    {
      S_ = S_ + SF.Substring(i, 1);
      i++;
    }
    F_ = SF.Substring(i + 1);

    S = Convert.ToInt32(S_);
    F = Convert.ToInt32(F_);
    result = S / F;
    result++;
    Console.WriteLine(result.ToString());
  }
}
0