CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 12:29:06 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=16e3afb7f8c80125ecb68d7a71616edf89f8dce17ad6f363f421bed14b499a70a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22TiM6JJI6Hmg8qeZWEZL-88qgk8-eGj4n%22%3B%7D; HttpOnly; Path=/
cf-ray: 98ce5c7359c31eef-BLR
function solve(base, levelHight) { let level = 0; let stone = 0; let marbl - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function solve(base, levelHight) {
- let level = 0;
- let stone = 0;
- let marble = 0;
- let lapis = 0;
- let gold = 0;
- while (base > 0) {
- level++;
- if (base === 1 || base === 2) {
- let goldArea = base * base;
- gold = goldArea * levelHight;
- break;
- }
- stone += ((base - 2) * (base - 2)) * levelHight;
- if (level % 5 == 0) {
- let lapisLazuli = ((base - 1) * 4) * levelHight;
- lapis += lapisLazuli;
- } else {
- marble += ((base - 1) * 4) * levelHight;
- }
- base -= 2;
- } let hight = Math.floor(level * levelHight);
- console.log(`Stone required: ${Math.ceil(stone)}`);
- console.log(`Marble required: ${Math.ceil(marble)}`);
- console.log(`Lapis Lazuli required: ${Math.ceil(lapis)}`);
- console.log(`Gold required: ${Math.ceil(gold)}`);
- console.log(`Final pyramid height: ${hight}`);
- }
Advertisement
Add Comment
Please, Sign In to add comment
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ 3
JavaScript | 4 sec ago | 0.24 KB
-
⭐✅ Jack's Profit Method ✅ NEVER SEEN BEF...
JavaScript | 7 sec ago | 0.24 KB
-
⭐⭐⭐Crypto Accounts⭐⭐
Java | 8 sec ago | 0.10 KB
-
✅⭐ Make huge profits on trading ⭐⭐ J
JavaScript | 10 sec ago | 0.24 KB
-
⭐✅ Online Marketplace Exploit ✅ NEVER SEEN BE...
JavaScript | 16 sec ago | 0.24 KB
-
⭐✅ Swapzone Glitch ✅ Working⭐⭐⭐ L
JavaScript | 17 sec ago | 0.24 KB
-
⭐⭐⭐Make $15OO in 2O minutesV G⭐⭐
Java | 19 sec ago | 0.10 KB
-
⭐✅ MAKE $2500 IN 15 MIN⭐⭐⭐ 4
JavaScript | 21 sec ago | 0.24 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand