結果
| 問題 |
No.51 やる気の問題
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-08-27 15:25:40 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 273 bytes |
| コンパイル時間 | 1,045 ms |
| コンパイル使用メモリ | 99,968 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-12 03:43:07 |
| 合計ジャッジ時間 | 2,264 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 RE * 6 |
ソースコード
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!int;
auto d = readln.chomp.to!int;
while (d > 1) {
w -= w / d ^^2;
d -= 1;
}
writeln(w);
}