68 problems solved
Rank by points: #3270
Total points:
124
1 contest written
Rank by rating: #3158
Rating: 822
Volatility: 385
Min. rating: 822
Max rating: 822
From Nepean H.S.
About
Go to: https://www.w3schools.com/code/tryit.asp?filename=GC06X6RQDK6R and click "Run"
Programming hell: https://repl.it/@avisk/Hell-Code-Translator
Upvote me @avisk on stackoverflow: https://stackoverflow.com/a/63921930/14288184
Github: https://github.com/avisk1
Paste the following code into your user-script (Don't worry, it's not a virus)
⚠️⚠️⚠️WARNING: DO NOT USE THIS CODE IF YOU ARE SENSITIVE TO FLASHING LIGHTS⚠️⚠️⚠️
//⚠️⚠️WARNING: DO NOT USE THIS CODE IF YOU ARE SENSITIVE TO FLASHING LIGHTS⚠️⚠️
$(function() {
const colors = [ "red", "orange", "yellow", "#93FF33", "#33FFB8", "#339CFF", "#9333FF", "#F933FF" ];
let index = 0;
setInterval(() => {
$("*").css({background: colors[index]});
index++;
if (index == colors.length) index = 0;
}, 100);
})
$(document).on('click',function(){alert("You clicked something!")});
#include <iostream>
#include <cstdlib>
#include <chrono>
#include <thread>
#include <ctime>
using namespace std;
void pause(int seconds) {
chrono::seconds dura(seconds);
this_thread::sleep_for(dura);
}
int main() {
int happiness = 10;
pause(2);
cout << "Happiness level: " << happiness << "\n";
pause(2);
bool depressed = false;
int counter = 0;
while (happiness > 0) {
srand((int)time(0));
counter++;
int ran = (rand() % 4) + 1;
if (ran == 1) {
bool school = false;
happiness++;
cout << "No school! Happiness level: " << happiness << "\n";
pause(2);
}
else {
bool school = true;
happiness--;
cout << "School today. Happiness level: " << happiness << "\n";
pause(2);
}
if (happiness == 0) {
depressed = true;
cout << "You are depressed\n";
pause(2);
cout << "You survived for " << counter << " rounds";
}
}
return 0;
}
Rating history
, #