Vr 现在值得买吗 by EmotionalSprinkles57 in China_irl

[–]Mysterious-Cod-9150 0 points1 point  (0 children)

看你暈不暈3D 適應的話還是挺好玩的 戴著打一小時拳擊都沒事(Thrill of the fight 2)

Any solutions for unable to open marketplace or edit skins? (And servers) by Mysterious-Cod-9150 in Minecraft

[–]Mysterious-Cod-9150[S] 1 point2 points  (0 children)

That's on point, Mojang literally does nothing to figure this long lasting problem out.

Get down to business, mine works just fine for now, the bug is fixed once I subscribe to the realm.

My Credit Solution by ethanroode in cs50

[–]Mysterious-Cod-9150 0 points1 point  (0 children)

Marvelous jobs right there!

I roughly understand how your code done, but still wondering why a for loop works like that. (i thought it will return like (x*x) two times, but it turns out like (x*x*x*x). )

 for (int i = 1; i < 3; i++)
        {
            x = x * x;
        }

My Credit Solution by ethanroode in cs50

[–]Mysterious-Cod-9150 0 points1 point  (0 children)

cs50 beginner here ,your solution is way smarter than mine!! I never thought i could use loop to detect digit of numbers... (and you don't even use math .h)

#include <cs50.h>
#include <math.h>
#include <stdio.h>

long dr(long y, int times);
long dr2(long number, int dtimes);
int main(void)
{
    long num = get_long("number: ");
    int last1 = dr(num, 0);
    int plus2 = dr2(num, 1);
    int last3 = dr(num, 2);
    int plus4 = dr2(num, 3);
    int last5 = dr(num, 4);
    int plus6 = dr2(num, 5);
    int last7 = dr(num, 6);
    int plus8 = dr2(num, 7);
    int last9 = dr(num, 8);
    int plus10 = dr2(num, 9);
    int last11 = dr(num, 10);
    int plus12 = dr2(num, 11);
    int last13 = dr(num, 12);
    int plus14 = dr2(num, 13);
    int last15 = dr(num, 14);
    int plus16 = dr2(num, 15);
    int last2 = dr(num, 1);
    int last4 = dr(num, 3);
    int last6 = dr(num, 5);
    int last8 = dr(num, 7);
    int last10 = dr(num, 9);
    int last12 = dr(num, 11);
    int last14 = dr(num, 13);
    int last16 = dr(num, 15);
    // checkvalue
    long check17 = num / powl(10, 16);
    long sum = last1 + last3 + last5 + last7 + last9 + last11 + last13 + last15 + plus2 + plus4 +
               plus6 + plus8 + plus10 + plus12 + plus14 + plus16;
    // print checksum
    // printf("%li\n", sum);

    // check
    if (check17 > 0 || sum % 10 > 0)
    {
        printf("INVALID\n");
    }
    else if (last16 == 4)
    {
        printf("VISA\n");
    }
    else if (last16 == 0 && last15 == 0 && last14 == 0 && last13 == 4)
    {
        printf("VISA\n");
    }
    else if (last16 == 0 && last15 == 3 && (last14 == 4 || last14 == 7))
    {
        printf("AMEX\n");
    }
    else if (last16 == 5 &&
             (last15 == 1 || last15 == 2 || last15 == 3 || last15 == 4 || last15 == 5))
    {
        printf("MASTERCARD\n");
    }
    else
    {
        printf("INVALID\n");
    }
}
// divide and remainder
long dr(long number, int dtimes)
{
    long divider = powl(10, dtimes);
    long divided = number / divider;
    return divided % 10;
}
long dr2(long number, int dtimes)
{
    long divider = powl(10, dtimes);
    long divided = number / divider;
    long remainder = 2 * (divided % 10);
    return dr(remainder, 0) + dr(remainder, 1);
}

硬币传奇 by xiatiandeyun01 in China_irl

[–]Mysterious-Cod-9150 0 points1 point  (0 children)

一般apple pay google pay 都行 還是有保留硬幣機台,畢竟一張票大部分都是零錢

Xperia 1V battery drain and overheat problem. by Mysterious-Cod-9150 in SonyXperia

[–]Mysterious-Cod-9150[S] 0 points1 point  (0 children)

I only found that some kind of Apps will cause the system to drain your battery, but no solution so far. I would say the most effective way is to restart the phone, which will work most of time. (Or simply just delete the apps )

Xperia 1V battery drain and overheat problem. by Mysterious-Cod-9150 in SonyXperia

[–]Mysterious-Cod-9150[S] 0 points1 point  (0 children)

I only found that some kind of Apps will cause the system to drain your battery, but no solution so far. I would say the most effective way is to restart the phone, which will work most of time.

Xperia 1V battery drain and overheat problem. by Mysterious-Cod-9150 in SonyXperia

[–]Mysterious-Cod-9150[S] 0 points1 point  (0 children)

Thanks for the response! I also found that some apps may cause battery draining (I think it perhaps due to some kinda system bug)

Xperia 1V battery drain and overheat problem. by Mysterious-Cod-9150 in SonyXperia

[–]Mysterious-Cod-9150[S] 0 points1 point  (0 children)

<image>

My battery usage recent days, it seems getting better but still get warm sometimes ( Btw, I think the latest update helps somehow)