HackerRank
Stack Overflow
Chess.com
Welcome to my profile! ✨
-
I'm a Web Developer, mainly java & python, studying Golang
-
A fun fact about me: luv 2 play Chess
-
My nickname is bullet bcause Chess Bullet mode, My Biggest rating is 3100 ᯓᡣ𐭩
“There is something in you I like more than yourself. Therefore I must destroy you.”
- Jacques Lacan -
public class SoftwareEngineer {
private String name;
private String role;
private String[] languageSpoken;
public SoftwareEngineer() {
this.name = "Michael Bullet";
this.role = "systems analysis and development";
this.languageSpoken = new String[]{"pt_BR", "en_US"};
}
public void sayHi() {
System.out.println("Hey there, hope you find some of my work interesting. :)");
}
public static void main(String[] args) {
SoftwareEngineer me = new SoftwareEngineer();
me.sayHi();
}
}
click 2 display click 2 display
import java.util.Scanner;
public class Life {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
boolean hasVision = true;
boolean staysPositive = true;
boolean worksHard = true;
boolean learnsFromFailure = true;
boolean adaptsToChange = true;
boolean giveUp = false;
final int patience = 100;
final int consistency = 100;
final int mentalHealth = 100;
final int socialSupport = 50;
int currentPatience = patience;
int currentConsistency = consistency;
int currentMentalHealth = mentalHealth;
int currentSocialSupport = socialSupport;
while (hasVision && staysPositive && !giveUp) {
System.out.println("Informe suas métricas diárias (0-100):");
System.out.print("Trabalho duro: ");
worksHard = scanner.nextInt() > 50;
System.out.print("Aprendeu com os erros: ");
learnsFromFailure = scanner.nextInt() > 50;
System.out.print("Adaptou-se às mudanças: ");
adaptsToChange = scanner.nextInt() > 50;
System.out.print("Saúde mental: ");
currentMentalHealth = scanner.nextInt();
System.out.print("Suporte social: ");
currentSocialSupport = scanner.nextInt();
if (worksHard && learnsFromFailure && adaptsToChange) {
Success success = applyHardwork() + seizeOpportunity();
keepGoing();
improveSkills();
if (success.isAchieved()) {
System.out.println("Parabéns! Sucesso alcançado!");
break;
}
}
currentConsistency--;
currentPatience--;
if (currentConsistency <= 0 || currentPatience <= 0) {
System.out.println("Continue se esforçando! O sucesso leva tempo.");
currentConsistency = consistency;
currentPatience = patience;
}
if (currentMentalHealth <= 0) {
System.out.println("Saúde mental está baixa. Faça uma pausa e busque suporte.");
currentMentalHealth = mentalHealth;
currentSocialSupport += 10; // Aumenta o suporte social após buscar ajuda
}
if (Math.random() > 0.95) {
System.out.println("Sentindo-se sobrecarregado... considerando desistir.");
giveUp = true;
}
if (Math.random() > 0.90) {
System.out.println("Um evento positivo aconteceu! Sentindo-se mais motivado.");
currentPatience += 10;
currentConsistency += 10;
}
if (Math.random() > 0.85) {
System.out.println("Refletindo sobre o progresso... Ajustando estratégias.");
worksHard = Math.random() > 0.5;
learnsFromFailure = Math.random() > 0.5;
adaptsToChange = Math.random() > 0.5;
}
}
if (giveUp) {
System.out.println("Não desista! Reflita, recarregue e tente novamente.");
}
scanner.close();
}
private static Success applyHardwork() {
return new Success();
}
private static Success seizeOpportunity() {
return new Success();
}
private static void keepGoing() {
}
private static void improveSkills() {
}
}
class Success {
public boolean isAchieved() {
return Math.random() > 0.8;
}
}
Se precisar de ajuda ou tiver dúvidas e sugestões, entre em contato comigo 😉
⢀⣴⣿⣿⣿⣿⣿⣶⣶⣶⣿⣿⣶⣶⣶⣶⣶⣿⡿⣿⣾⣷⣶⣶⣾⣿⠀
⣠⣿⣿⢿⣿⣯⠀⢹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⣿⡇⣿⣿⣿⣿⣿⡇
⠀⣰⣿⣿⣷⡟⠤⠟⠁⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢸⡇⣿⣿⣿⣿⣿⡇
⠀⣿⣿⣿⣿⣿⣷⣶⣿⣿⡟⠁⣮⡻⣿⣿⣿⣿⣿⣿⣿⣿⢸⡇⣿⣿⣿⣿⣿⡇
⠘⣿⣿⣿⣿⣿⣿⣿⣿⠏⠀⠀⣿⣿⣹⣿⣿⣿⣿⣿⣿⡿⢸⡇⣿⣿⣿⣿⣿⡇
⠀⠙⢿⣿⣿⣿⡿⠟⠁⣿⣿⣶⣿⠟⢻⣿⣿⣿⣿⣿⣿⡇⣼⡇⣿⣿⣿⣿⣿⠇
⠀⠀⠈⠋⠉⠁⣶⣶⣶⣿⣿⣿⣿⢀⣿⣿⣿⣿⣿⣿⣿⣇⣿⢰⣿⣿⣿⣿⣿⠀
⠀⠀⠀⠀⠀⠙⠿⣿⣿⣿⡄⢀⣠⣾⣿⣿⣿⣿⣿⣿⣿⣽⣿⣼⣿⣿⣿⣿⠇⠀
⠀⠀⠀⠀⠀⠀⠀⠈⠉⠒⠚⠿⠿⠿⠿⠿⠿⠿⠿⠿⠿⠛⠿⠿⠿⠿⠿⠋⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⣿⣙⡆⠀⠀⡇⠀⢸⠀⠀⢸⠀⠀ ⢸⡇⠀⠀⢸⣏⡉ ⠙⡏⠁⠀
⠀⠀⠀⣿⣉⡷⠀⠀⢧⣀⣼ ⠀⢸⣀ ⢸⣇⡀ ⢸⣏⣁⠀ ⠀⡇⠀
____ _ _ _ _____ ______ __ __ | _ \ | || | | | | __ \ | ____|\ \ / / | |_) | _ _ | || | ___ | |_ | | | || |__ \ \ / / | _ < | | | || || | / _ \| __| | | | || __| \ \/ / | |_) || |_| || || || __/| |_ | |__| || |____ \ / |____/ \__,_||_||_| \___| \__| |_____/ |______| \/