結果
| 問題 |
No.388 階段 (1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-20 14:30:31 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 475 bytes |
| コンパイル時間 | 900 ms |
| コンパイル使用メモリ | 110,368 KB |
| 実行使用メモリ | 26,228 KB |
| 最終ジャッジ日時 | 2024-11-23 14:45:17 |
| 合計ジャッジ時間 | 1,920 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | WA * 10 RE * 2 |
コンパイルメッセージ
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()
{
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 = F / S;
result++;
Console.WriteLine(result.ToString());
}
}