結果
問題 | No.46 はじめのn歩 |
ユーザー | Hiroki Noda |
提出日時 | 2017-06-06 15:28:11 |
言語 | D (dmd 2.106.1) |
結果 |
AC
|
実行時間 | 377 ms / 5,000 ms |
コード長 | 375 bytes |
コンパイル時間 | 635 ms |
コンパイル使用メモリ | 92,236 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-09-03 13:57:41 |
合計ジャッジ時間 | 1,769 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,380 KB |
testcase_01 | AC | 1 ms
4,376 KB |
testcase_02 | AC | 1 ms
4,380 KB |
testcase_03 | AC | 2 ms
4,380 KB |
testcase_04 | AC | 1 ms
4,376 KB |
testcase_05 | AC | 1 ms
4,380 KB |
testcase_06 | AC | 2 ms
4,380 KB |
testcase_07 | AC | 2 ms
4,376 KB |
testcase_08 | AC | 377 ms
4,376 KB |
testcase_09 | AC | 2 ms
4,380 KB |
ソースコード
import std.array; import std.algorithm; import std.conv : to; import std.range; import std.stdio; import std.string; void main() { auto n = stdin.readln.chomp.array.split(" ").map!(to!long).array; auto a = n[0]; auto b = n[1]; auto count = 0; while (true) { count++; b -= a; if (b <= 0) break; } writeln(count); }