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