結果
問題 | No.560 ふしぎなナップサック |
ユーザー |
|
提出日時 | 2017-08-25 22:35:26 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 614 bytes |
コンパイル時間 | 2,581 ms |
コンパイル使用メモリ | 162,352 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-12 21:43:37 |
合計ジャッジ時間 | 3,253 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
ソースコード
import std.algorithm, std.conv, std.range, std.stdio, std.string;import std.container; // SList, DList, BinaryHeapimport std.typecons; // Tuple, Nullable, BigFlagsimport std.math; // math functionsimport std.numeric; // gcd, fftimport std.bigint; // BigIntimport std.random; // randomimport std.bitmanip; // BitArrayimport core.bitop; // bit operationimport std.regex; // RegEximport std.uni; // unicodevoid main(){auto rd = readln.split.to!(int[]), m = rd[0], n = rd[1];auto e = m.to!real;foreach (_; 0..n)e = ((e+1) + (e*2)) / 3;writefln("%.9f", e);}