結果
| 問題 |
No.53 悪の漸化式
|
| コンテスト | |
| ユーザー |
butchi_y
|
| 提出日時 | 2014-10-30 23:48:34 |
| 言語 | JavaScript (node v23.5.0) |
| 結果 |
AC
|
| 実行時間 | 62 ms / 5,000 ms |
| コード長 | 360 bytes |
| コンパイル時間 | 99 ms |
| コンパイル使用メモリ | 5,120 KB |
| 実行使用メモリ | 39,424 KB |
| 最終ジャッジ日時 | 2024-10-12 23:32:15 |
| 合計ジャッジ時間 | 1,971 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
function Main(input) {
n = parseInt(input);
ans = a(n);
console.log('%f', 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