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:
    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.
  • Sicklyboy @ Sicklyboy:
    sometimes I wonder where I went wrong and why I'm so dissatisfied with my life
  • Sicklyboy @ Sicklyboy:
    Then I find myself arguing with someone on reddit about how blatantly wrong their understanding of the USB Power Delivery specification is.
  • Sicklyboy @ Sicklyboy:
    At 1 AM.
  • Sicklyboy @ Sicklyboy:
    Where did I go wrong, again? 😕
  • SylverReZ @ SylverReZ:
    @Sicklyboy, What do you mean?
  • K3Nv2 @ K3Nv2:
    @Sicklyboy, always blame women
  • Veho @ Veho:
    Blame woke.
  • SylverReZ @ SylverReZ:
    Blame society.
  • K3Nv2 @ K3Nv2:
    Woke isn't part of society they woke up from it
    +1
  • Veho @ Veho:
    *spends years yelling "wake up sheeple"
    *acts shocked when they actually wake up
  • Veho @ Veho:
    Make up your mind.
  • K3Nv2 @ K3Nv2:
    You mean the government doesn't care? :(
  • Veho @ Veho:
    I have no idea what you're talking about.
  • K3Nv2 @ K3Nv2:
    The government
    SylverReZ @ SylverReZ: https://www.youtube.com/clip/Ugkx4pNi-wvHyf8vhDN0x06Wf8J7aIgx_Hdp