結果
問題 |
No.388 階段 (1)
|
ユーザー |
|
提出日時 | 2016-10-20 14:31:08 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 22 ms / 2,000 ms |
コード長 | 475 bytes |
コンパイル時間 | 2,566 ms |
コンパイル使用メモリ | 103,424 KB |
実行使用メモリ | 17,920 KB |
最終ジャッジ日時 | 2024-11-23 14:45:37 |
合計ジャッジ時間 | 1,836 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
コンパイルメッセージ
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 = S / F; result++; Console.WriteLine(result.ToString()); } }