Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //========================================C++17 MSBuild [conforming custom main: [int main(int i, char* c) {...};]
- //107 initial
- while(1){[c](time_t a){cout<<(Sleep((strftime(c,32,"%H:%M:%S dupka\n",localtime(&a)),1000)),c);}(time(0));}
- //101 - shrinked comma operator, got value from strftime and multiplates by 66- 66.666 * 15 = ~1000; shrinked brackets
- while(1)[c](time_t a){cout<<(Sleep(strftime(c,16,"%H:%M:%S dupka\n",localtime(&a))*66),c);}(time(0));
- //99 - replaced time_t with auto
- while(1)[c](auto a){cout<<(Sleep(strftime(c,16,"%H:%M:%S dupka\n",localtime(&a))*66),c);}(time(0));
- ///============/=/=/=/============Ugly entries (that I'm not proud of)
- //93 - too much comma statements
- for(time_t a;;Sleep(1000))cout<<(time(&a),strftime(c,16,"%H:%M:%S dupka\n",localtime(&a)),c);
- ///============/=/=/=/============Wrong or doesn't working
- //90 - moved time_t initialization to variable init [time(0) is no more called as it was called only once
- for(auto a=time(0);;Sleep(1000))cout<<(strftime(c,16,"%H:%M:%S dupka\n",localtime(&a)),c);
- //========================================C++17 MSBuild [conforming standard main: [int main(int argc, char* argv[]) {...};]
- //101 initial
- for(time_t t;;Sleep(1000))cout<<(time(&t),strftime(*argv,16,"%H:%M:%S tekst\n",localtime(&t)),*argv);
- //99 - moved sleep outside and localtime(time(... is the only one comma operator
- //redundancy on argv;
- //redundancy on time, but shit I can't do anything
- for(time_t t;;cout<<*argv)Sleep(strftime(*argv,16,"%H:%M:%S tekst\n",localtime((time(&t),&t)))<<6);
- //98 - time_t which is long long, just use shorter type- this so far I found
- for(INT64 t;;cout<<*argv)Sleep(strftime(*argv,16,"%H:%M:%S tekst\n",localtime((time(&t),&t)))<<6);
- //92 - Right, secret parse thing
- for(INT64 t;;cout<<*argv)Sleep(strftime(*argv,16,"%T ABCDE%n",localtime((time(&t),&t)))<<6);
- //Current winning:92
- // [C++17] [Marcin]
- for(INT64 t;;cout<<*argv)Sleep(strftime(*argv,16,"%T ABCDE%n",localtime((time(&t),&t)))<<6);
- // [Java] [Norbert] //98
- for(;;Thread.sleep(1000))out.println(new SimpleDateFormat("'dupka 'HH:mm:ss").format(new Date()));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement