The Ctrl + V Game

plasturion

temporary hermit
Member
Joined
Aug 17, 2012
Messages
1,256
Trophies
2
Location
Tree
XP
3,577
Country
Poland
C:
#include <stdio.h>
#include <time.h>
int main(){
    double i,j;
    double wyn, need = 1.8848013598436708, now = 1.0,x=0,y=0;
    clock_t startT = clock();
    printf("looking for:%.16f\n",need);
    for(i=1;i<1000000;i++){
        for(j=(int)(i*0.54);j>=1;j--){
            //printf("%f / %f = %f, diff:%f\n",i,j,i/j,need - i/j);
            if( need - i/j < now && need - i/j >=0.0000000000000000){
                now = need - i/j;
                x = i;
                y = j;
            }
            if( need - i/j < 0)
                break;
        }
        //printf("\n");
    }
    printf("Closest founding: %d / %d = %.16f\n",(int)x,(int)y,x/y);
    printf("Execution time: %ds\n",((int)((float)(clock()-startT)/CLOCKS_PER_SEC)));
    return 0;
}
Code:
output:
looking for:1.8848013598436708
Closest founding: 685261 / 363572 = 1.8848013598406919
Execution time: 104s
 

K0rbo

Well-Known Member
Newcomer
Joined
Jan 17, 2022
Messages
56
Trophies
0
Age
16
XP
235
Country
United States
Code:
org.tildearrow.furnace - Pattern Data (190)
0
F-204......|
...........|
F-405..ED03|
...........|
...........|
C-304......|
...........|
F-405..ED03|
...........|
...........|
 

hippy dave

BBMB
Member
Joined
Apr 30, 2012
Messages
9,954
Trophies
2
XP
30,482
Country
United Kingdom
1705318972085.png

Didn't know it put my screenshot on the clipboard, TIL 🤷
 
  • Wow
Reactions: impeeza

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Sicklyboy @ Sicklyboy:
    Thanks ken
  • BigOnYa @ BigOnYa:
    Great game. But I'd buy it straight up before paying for prime. Unless you order something everyday from amazon, not worth it imo
  • Sicklyboy @ Sicklyboy:
    I'm one of those people that Amazon loses money on the Prime subscription with
  • Sicklyboy @ Sicklyboy:
    I abuse the fuck out of it
  • K3Nv2 @ K3Nv2:
    Prime says I've already saved $400 this year lol
  • Sicklyboy @ Sicklyboy:
    Where do you see how much you've saved?
  • K3Nv2 @ K3Nv2:
    Under orders
  • BigOnYa @ BigOnYa:
    See maybe good for you guys, but I don't hardly ever order from amazon, maybe only couple times a month
  • K3Nv2 @ K3Nv2:
    Primes great because I stopped getting into arguments with the door greeter at Walmart
  • Sicklyboy @ Sicklyboy:
    hahahahaha
  • K3Nv2 @ K3Nv2:
    They see me so much in there they don't even ask for me receipt anymore tbh
  • Sicklyboy @ Sicklyboy:
    Pain in the ass, don't see it anywhere on the desktop site, had to pull it up on my phone
  • K3Nv2 @ K3Nv2:
    Think they gave up on the website and mainly focus on the app
  • Sicklyboy @ Sicklyboy:
    Desktop site > mobile site > mobile app
  • Sicklyboy @ Sicklyboy:
    Mobile app is such absolute dogshit, I haven't used it in SO long
  • K3Nv2 @ K3Nv2:
    Yeah mobile versions better people don't think about how apps are just shrunken down websites
  • K3Nv2 @ K3Nv2:
    Could be the phone connection etc I've mostly been fine with the app
  • K3Nv2 @ K3Nv2:
    Regardless fuck bezos
    +1
  • Sicklyboy @ Sicklyboy:
    Agreed. Crazy how both seeking a job at Amazon, and subsequently quitting Amazon, are both some of the best decisions I've ever made
  • K3Nv2 @ K3Nv2:
    Did someone loose a leg? You're fired
  • K3Nv2 @ K3Nv2:
    Ffs 55gb patch for hogwarts legacy
  • SylverReZ @ SylverReZ:
    @K3Nv2, Teslas are prob running Windows XP to this day.
    SylverReZ @ SylverReZ: @K3Nv2, Teslas are prob running Windows XP to this day.