結果
問題 |
No.53 悪の漸化式
|
ユーザー |
![]() |
提出日時 | 2014-10-31 00:50:50 |
言語 | JavaScript (node v23.5.0) |
結果 |
AC
|
実行時間 | 65 ms / 5,000 ms |
コード長 | 249 bytes |
コンパイル時間 | 63 ms |
コンパイル使用メモリ | 5,248 KB |
実行使用メモリ | 39,424 KB |
最終ジャッジ日時 | 2024-10-12 23:32:12 |
合計ジャッジ時間 | 2,099 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
function Main(input) { n = parseInt(input); ans = a(n).toFixed(20); console.log(ans); } function a(n) { return Math.pow(3,n)/Math.pow(4,n-1); } // Don't edit this line! Main(require("fs").readFileSync("/dev/stdin", "utf8"));