name | correct guesses | games together | ratio |
---|---|---|---|
kimapr | 3 | 4 | 0.750 |
oleander | 1 | 4 | 0.250 |
name | correct guesses | games together | ratio |
---|---|---|---|
kimapr | 4 | 4 | 1.000 |
oleander | 0 | 4 | 0.000 |
submitted at
1 like
1 2 3 4 5 6 7 8 9 | const std = @import("std"); const cg86 = @import("cg86"); pub fn main() !void { var args = std.process.args(); _ = args.next(); const n = try std.fmt.parseInt(usize, args.next() orelse "93", 10); try cg86.freakyRecaca(n); } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | const std = @import("std"); const set = @import("ziglangSet"); pub fn freakyRecaca(N: usize) !void { // gangster language has an arena alloc var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator); defer arena.deinit(); const alloc = arena.allocator(); var a = set.Set(i64).init(alloc); _ = try a.add(0); // if n = 0 std.debug.print("{0}, ", .{0}); var last: i64 = 0; for (1..N) |n| { // the lionness does not concern herself with overflowing numbers const ni: i64 = @intCast(n); var c: i64 = last - ni; if (c < 0 or !try a.add(c)) { // inverse of "if a(n-1) - n > 0 and is not already in the sequence" c = last + ni; _ = try a.add(c); // "otherwise" } std.debug.print("{0}, ", .{c}); last = c; } std.debug.print("... \n", .{}); } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | const std = @import("std"); pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{}); // why does zig std not have a set?!??! const ziglangSet = b.dependency("ziglangSet", .{}); const mod = b.addModule("cg86", .{ .root_source_file = b.path("src/root.zig"), .target = target, .imports = &.{ .{ .name = "ziglangSet", .module = ziglangSet.module("ziglangSet") }, }, }); const exe = b.addExecutable(.{ .name = "cg86", .root_module = b.createModule(.{ .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, .imports = &.{ .{ .name = "cg86", .module = mod }, }, }), }); b.installArtifact(exe); const run_step = b.step("run", "Run the app"); const run_cmd = b.addRunArtifact(exe); run_step.dependOn(&run_cmd.step); run_cmd.step.dependOn(b.getInstallStep()); if (b.args) |args| { run_cmd.addArgs(args); } } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | .{ .name = .cg86, .version = "0.0.0", .fingerprint = 0x9d6a7336db41801e, .minimum_zig_version = "0.15.1", .dependencies = .{ // and why do i have to depend on a fork?!?! .ziglangSet = .{ .url = "https://github.com/cyberegoorg/ziglang-set/archive/5fb63d308b6ae64bead91372dc2e224ef8575244.tar.gz", .hash = "ziglangSet-0.0.1-VUjv0hoUAgAxi3Zu4l_6QRnST7KqzKJW9n0FV1WKfweT", }, }, .paths = .{ "build.zig", "build.zig.zon", "src", }, } |
submitted at
1 like
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | #!/usr/bin/env node /** * * @@@@@@@ @@@@@@ @@@@@@@ @@@@@@@@ @@@@@@@ @@@ @@@ @@@@@@@@ @@@@@@ @@@@@@ @@@ @@@ @@@ @@@@@@ @@@@@@@ @@@@@@@@ @@@@@@@@ * !@@ @@! @@@ @@! @@@ @@! !@@ @@! @@@ @@! !@@ !@@ @@! @@! @@! @@! @@@ @@! @@@ @@! @@! * !@! @!@ !@! @!@ !@! @!!!:! !@! @!@!@ @!@ !@! @!!!:! !@@!! !@@!! @!! !!@ @!@ @!@!@!@! @!@!!@! @!!!:! @!! * :!! !!: !!! !!: !!! !!: :!! !!: !!: !!! !!: !:! !:! !: !!: !! !!: !!! !!: :!! !!: !!: * :: :: : : :. : :: : : : :: :: :: :: : :.:: : : :: :: ::.: : ::.: : ::.: ::: : : : : : : : :: :: :.::.: : * * * @@@@@@@ @@@@@@@ @@@@@@@@ @@@@@@ @@@@@@@@ @@@ @@@ @@@@@@@ @@@@@@ * @@! @@@ @@! @@@ @@! !@@ @@! @@!@!@@@ @!! !@@ * @!@@!@! @!@!!@! @!!!:! !@@!! @!!!:! @!@@!!@! @!! !@@!! * !!: !!: :!! !!: !:! !!: !!: !!! !!: !:! * : : : : : :: :: ::.: : : :: :: :: : : ::.: : * * * @@@ @@@@@@@@ @@@@@@@ @@@@@@ @@@ @@@@@@ @@@ @@@ @@@@@@ @@@ @@@ @@@@@@@@ @@@@@@@ @@@@@@ @@@@@@@ * @@! @@! !@@ @@! @@@ @@! !@@ @@!@!@@@ @@! @@@ @@! !@@ @@! @@! @@@ @@! @@@ @!! * @!! @!!!:! !@! @!@!@ @!@!@!@! @!! !@@!! @!@@!!@! @!@!@!@! @!@@!@! @!!!:! @!@!@!@ @!@ !@! @!! * !!: !!: :!! !!: !!: !!! !!: !:! !!: !!! !!: !!! !!: :!! !!: !!: !!! !!: !!! !!: * : ::.: : : :: :: :: :: : : : : : ::.: : ::.: : :: : : : : : ::: : :: :: :: : :: : :. : : * */ const readline = require('readline'); let process = require("node:process"); process.stdin.setEncoding('ascii'); (async () => { console.log('ascii'); let width = 0; let height = 0; { const rl = readline.createInterface({ input: process.stdin }) for await (const line of rl) { if (width == 0) { width = parseInt(line, 10); continue; } else { height = parseInt(line, 10); break; } } } cmd = async (s) => { console.log(s); let r = new Set(); { const rl = readline.createInterface({ input: process.stdin }) let i = 0; for await (const line of rl) { r = r.union(new Set(line.split('$').map(d => d.length + i * width))); let head = line.indexOf('0'); if (head > -1) { if (line.indexOf('.') == -1 && ((line + line).indexOf('0$') == -1)) { return null; } } if (i == height) { break; } i += 1; } } return r; } while(1) { let last = await cmd('d') ?? new Set(); for(let i = 0; i < 16; ++i) { let n = await cmd('r'); if (n == null || n.isDisjointFrom(last)) { break; } } } })(); |
submitted at
1 like
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | import puppeteer from "puppeteer"; const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.setUserAgent("CodeGuesser/84", { platform: "Linux/X11-like", platformVersion: "6.15", model: "Pregnancy Test", architecture: "Loong64", mobile: true }); await page.goto("https://codeguessing.gay/84/_verify/reset"); // womp await page.goto("https://codeguessing.gay/84/"); // womp // note to the kimapr: randomize this text to make it ass const verify = await page.waitForSelector("text/--> Verify <--"); await verify.click(); /* await new Promise(r => setTimeout(r, 5000)); const anchors = await page.$$("a"); await anchors.at(-1).click(); */ await page.waitForNavigation(); console.log(await page.content()); await browser.close(); |
1 2 3 4 5 6 7 8 9 10 11 12 | { "name": "codeguesser", "version": "84", "description": "what the skibidi", "license": "codeguessing", "author": "a true sigma", "type": "module", "main": "index.mjs", "dependencies": { "puppeteer": "^24.19.0" } } |
submitted at
0 likes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | import Foundation private let G: Double = 6.6743e-11 // gravity, number found from an apple, update me when we find a graviton private let T: Double = 21600 // 1 step = this time (in seconds (six hours)) // not using 3rd axis, but we could! // simd because i cba writing a 2d/3d vector type typealias Vec3 = SIMD3<Double> struct Body { var name: String var mass: Double var pos: Vec3 var vel: Vec3 public mutating func imp(_ i: Vec3) { vel += i * T pos += vel * T } public func mag(_ other: Self) -> Vec3 { let r = other.pos - pos // distance let d = sqrt(r.x * r.x + r.y * r.y + r.z * r.z) // length let f = G * ((mass * other.mass) / (d * d)) // newton's headache let n = r / d // normalize return f * n // distance to vector } } // note: without the sol and jupiter, terra will slowly approach luna // but i am too lazy to look up the values for other bodies // also; this doesn't have axis inclination // so it's going to be inaccurate to real life regardless // but pretend it's real and earth is slowly going sideways var bodies = [ Body( name: "terra", mass: 5.972e+24, pos: Vec3(repeating: 0), vel: Vec3(repeating: 0)), Body( name: "luna", mass: 7.348e+22, pos: Vec3(3.844e+8, 0, 0), vel: Vec3(0, 1022, 0)), ] // tsv we can plot~ print("index\tbody\tx\ty\tz") for t in 0..<500 { var f = [Vec3](repeating: Vec3(repeating: 0), count: bodies.count) for i in 0..<bodies.count { let body = bodies[i] for j in 0..<bodies.count where i != j { f[i] += body.mag(bodies[j]) / body.mass } } for i in 0..<bodies.count { bodies[i].imp(f[i]) print("\(t)\t\(bodies[i].name)\t\(bodies[i].pos.x)\t\(bodies[i].pos.y)\t\(bodies[i].pos.z)") } } |
post a comment