結果
問題 | No.51 やる気の問題 |
ユーザー |
|
提出日時 | 2016-08-27 15:33:24 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 275 bytes |
コンパイル時間 | 779 ms |
コンパイル使用メモリ | 99,840 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-12 03:43:15 |
合計ジャッジ時間 | 1,721 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
import std.algorithm, std.array, std.range; import std.string, std.conv; import std.math; import std.stdio, std.typecons; void main() { auto w = readln.chomp.to!long; auto d = readln.chomp.to!long; while (d > 1) { w -= w / d ^^2; d -= 1; } writeln(w); }