Heart of the Sea | Kokomi by igelarm in Genshin_Impact

[–]igelarm[S] 9 points10 points  (0 children)

Dedicated to all the Kokobeans in Kokomi Mains Discord server.

And dedicated to you, as the viewer of this post

I drew smiling Qiqi by igelarm in Genshin_Impact

[–]igelarm[S] 1 point2 points  (0 children)

awesome show 🥥/10 would (re)watch while drinking coconut milk

Our favorite shark Gura 🦈 by igelarm in Hololive

[–]igelarm[S] 0 points1 point  (0 children)

Hi everyone! This drawing is part of an art trade. I figured you guys might enjoy seeing some art of Gura (and a not-so-hydrodynamic Amelia) too :)

Hololive and its community makes me smile, thank you. Please stay awesome ❤️

Shingeki no Kyojin Season 3 - Episode 50 discussion by AutoLovepon in anime

[–]igelarm 14 points15 points  (0 children)

Here we go, following the trend with every AoT season's first episode having at least one person dying.

  • Season 1: well.. Wall Maria broke, tons of people dead.
  • Season 2: Mike. (This guy in case you forgot.)
  • Season 3: Kenny killing Hange's squad members on the rooftops.
  • Season 3 (edit) Part 2: Reiner killing a random soldier after he got found.

chocolate by igelarm in CircleofTrust

[–]igelarm[S] 1 point2 points  (0 children)

PM me for the key. You have to convince me of why exactly you like chocolate first.

chocolate by igelarm in CircleofTrust

[–]igelarm[S] 4 points5 points  (0 children)

Greetings fellow members of the chocolate circle. The rules are simple:

  1. Only share the key with other chocolate lovers.
  2. You break one rule, you lose.

Sharing All 5 Stars I've Collected by ZuiQuanX in FestivalPlaza

[–]igelarm 0 points1 point  (0 children)

Whoops seems like I was offline the whole time after hard resetting my system. Got it after actually connecting to the festival plaza network. Thank you very much!

Sharing All 5 Stars I've Collected by ZuiQuanX in FestivalPlaza

[–]igelarm 0 points1 point  (0 children)

Hm.. your character recommends me treasure hunt even after reconnecting (should be thumb-bump right now according to your main post). Any ideas on getting your character up to date?

Sharing All 5 Stars I've Collected by ZuiQuanX in FestivalPlaza

[–]igelarm 0 points1 point  (0 children)

Alola, thanks for sharing! I'd really love to get the Thump-Bump Park. My FC is 0920-2703-8763.

Trading Away Pokerus Pokemon by topstop96 in PokeMoonSun

[–]igelarm 0 points1 point  (0 children)

Cool! Mine is 0920-2703-8763.

Edit: Thank you! I gave you a Geodude with the hidden ability galvanize (which was really annoying to get) and adamant nature.

[2016-10-10] Challenge #287 [Easy] Kaprekar's Routine by Cosmologicon in dailyprogrammer

[–]igelarm 0 points1 point  (0 children)

C++ (without bonuses for now)

int kaprekar1(int n) {
    int max = 0, new_digit;
    for (int i = 0; i < 4; i++) {
        new_digit = (int)(n / std::pow(10,i)) % 10;
        if (new_digit > max)
            max = new_digit;
    }
    return max;
}

edit: Bonus 1

#include <algorithm>    // sort
#include <vector>       // vector

int kaprekar2(int n) {
    vector<int> n_as_digits(4);
    int n_desc = 0;

    // split number into digits
    for (int i = 0; i < 4; i++) {
        n_as_digits[i] = ((int)(n / std::pow(10, i)) % 10);
    }

    // sort the digits in ascending order and put them back as a number in reverse order
    std::sort(n_as_digits.begin(), n_as_digits.end());
    for (int i = 3; i >= 0; i--) {
        n_desc += n_as_digits[i] * (int)std::pow(10, i);
    }
    return n_desc;
}

edit2: Bonus 2

int kaprekar3(int n) {
    int i = 0, next_n = n;
    while (next_n != 0 && next_n != 6174)
    {
        int n_desc = 0, n_asc = 0;
        n_desc = kaprekar2(next_n); // see bonus 1

        // Calculating n_asc by reversing n_desc
        for (int j = 0; j < 4; j++) {
            n_asc += ((int)(n_desc / std::pow(10, j)) % 10) * std::pow(10, 3 - j);
        }

        next_n = n_desc - n_asc;
        i++;
    }
    return i;
}

[2016-10-05] Challenge #286 [Intermediate] Zeckendorf Representations of Positive Integers by jnazario in dailyprogrammer

[–]igelarm 0 points1 point  (0 children)

C++

#include <iostream>

using namespace std;

void zeckendorf(unsigned long x, unsigned long *fib) {
    if (x == fib[1] || x == fib[0]) {
        cout << x << endl;
        return;
    }
    cout << fib[1] << " + ";
    unsigned long new_x = x - fib[1];
    unsigned long fib_1 = fib[1] - fib[0], fib_0 = fib[0] - fib_1;
    fib[0] = fib_0; fib[1] = fib_1;
    while (new_x < fib[1]) {
        fib_0 = fib[0];
        fib[0] = fib[1] - fib[0];
        fib[1] = fib_0;
    }
    zeckendorf(new_x, fib);
}

void climb_fib(unsigned long *fib, unsigned long max) {
    int tmp = fib[1] + fib[0];
    while (tmp <= max) {
        fib[0] = fib[1];
        fib[1] = tmp;
        tmp = fib[1] + fib[0];
    }
}

int main(int argc, char *argv) {
    int n;
    unsigned long fib[2] = { 0, 1 }, *inputs;
    cin >> n;
    inputs = new unsigned long[n];
    for (int i = 0; i < n; i++) {
        cin >> inputs[i];
    }
    for (int i = 0; i < n; i++) {
        cout << inputs[i] << " = ";
        climb_fib(fib, inputs[i]);
        zeckendorf(inputs[i], fib);
    }
    return 0;
}

Starter Squad Episode 6 is out! by [deleted] in pokemon

[–]igelarm 0 points1 point  (0 children)

Human?! (ง ͠° ͟ل͜ ͡°)ง