-
. i make myself as tiny as possible and eat my food. after some time i ask him if he would like me to go around the corner with my plate so he could have even more space. he declines and i make a joke like "hey but you need more space every minute, i cant see my food anymore because your arm is around it..." ~ from this journal entry
-
-
-
-
Using the grand ol' internet translator:
What the fuck fuck you just said to me, you little bitch? I'll let you know I graduated top of my class SEALs, I have many secrets involved in al-Qaeda attacks, and I have over 300 confirmed killed. I trained gorilla warfare, snipers me up throughout the United States Army. You are nothing to me, but only one goal. I'll fucking destroy you prefer a precision never seen on this earth, mark my words fuck. You think you can get away I say dog feces on the Internet? Think again, fool. As we speak, I contacted my secret across the US spy network and IP are now allowing you to track as storms, maggots better prepared. This wipe your phone
-
Kritische Geschichte der Meinungen von dem Geschlechte der Bienen
-
-
"Are you going to see the solar eclipse tomorrow? Tell me where and how!"
-
A snippet from a very annoying coding challenge on HackerRank that took me way longer than it should have. Now with terrible variable names. The indentation didn't carry over for some reason.
import java.io.*;
import java.util.*;
public class Solution
{
private static boolean canBreak(String loginAttempt, ArrayList<String> sol, ArrayList<String> passwords)
{
int len = loginAttempt.length();
if (len == 0)
{
return true;
}
ArrayList<Boolean> dpTable = new ArrayList<>();
for (int i = 0; i < len + 1; i++)
{
dpTable.add(false);
}
for (int i = 1; i <= len; i++)
{
if (dpTable.get(i) == false && passwords.contains(loginAttempt.substring(0, i)))
{
dpTable.set(i, true);
//sol.add(loginAttempt.substring(0, i));
}
if (dpTable.get(i) == true)
{
if (i == len)
{
//sol.add(loginAttempt.substring(0, i));
return true;
}
for (int j = i + 1; j <= len; j++) // i instead of i + 1?
{
//System.out.println("i is " + i); // 2
//System.out.println("j is " + j); // 3
if (dpTable.get(j) == false && passwords.contains(loginAttempt.substring(i, j))) //instead of j-i
{
dpTable.set(j, true);
//sol.add(loginAttempt.substring(i, j));
}
if (j == len && dpTable.get(j) == true)
{
//sol.add(loginAttempt.substring(i, j));
return true;
}
}
}
}
return false;
}
private static ArrayList<String> getWords(ArrayList<String> sol, String loginAttempt, ArrayList<String> pass,
int len, String result)
{
if (sol.contains("CRAPAMOLE"))
{
return sol;
}
//System.out.println("getWords(" + loginAttempt + ")");
//int len = loginAttempt.length();
for (int i = 1; i <= len; i++)
{
String prefix = loginAttempt.substring(0, i);
if (pass.contains(prefix))
{
if (i == len)
{
sol.add(result + prefix);
sol.add("CRAPAMOLE");
return sol;
}
getWords(sol, loginAttempt.substring(i, len), pass, len - i, result + prefix + " ");
//sol.add(prefix);
}
}
return sol;
}
public static void main(String[] args)
{
Scanner pasta = new Scanner(System.in);
int numTestCases = pasta.nextInt();
for (int i = 0; i < numTestCases; i++)
{
int numUsersWithPasswords = pasta.nextInt();
ArrayList<String> existingPasswords = new ArrayList<>();
for (int j = 0; j < numUsersWithPasswords; j++)
{
existingPasswords.add(pasta.next());
}
String loginAttempt = pasta.next();
ArrayList<String> sol = new ArrayList<>();
if (canBreak(loginAttempt, sol, existingPasswords))
{
sol = getWords(sol, loginAttempt, existingPasswords, loginAttempt.length(), "");
for (int j = 0; j < sol.size(); j++)
{
if (sol.get(j).equals("CRAPAMOLE"))
{
System.out.println();
break;
}
if (j == sol.size() - 1)
{
System.out.println(sol.get(j));
}
else
{
System.out.print(sol.get(j) + " ");
}
}
}
else
{
System.out.println("WRONG PASSWORD");
}
}
}
}
-
-
-
-