eipie's blog

By eipie, 5 years ago, In English,

Hey Guys/Girls,

Looking for people who are interested in making apps and earning some money on the side. I have a particular app in mind that I want to make but would love to have 1-2 additional people with me to get this all done.

Looking forward from hearing from you!

eipie

Read more »

 
 
 
 
  • Vote: I like it
  • +1
  • Vote: I do not like it

By eipie, 7 years ago, In English,

Hey Guys/Girls,

I am pretty average / below average at all this because I didn't actually know that sites like Codeforces and TopCoder existed until I was out of college. :(

So.. when I realized I was living under a shell, I reached out to my friends. All my friends who were are actually good at this sort of stuff don't have time anymore and the rest aren't really all that interested in solving these programming puzzles.

I am getting sort of better at these competitions but not really at the rate that I would have liked. I would love it if anyone wants to help get better with me / mentor me to get better at solving questions.

Any volunteers? :)

Read more »

 
 
 
 
  • Vote: I like it
  • +7
  • Vote: I do not like it

By eipie, 7 years ago, In English,

Do people get these errors a lot?

And if not, is there something on my end to fix these Bad Gateway / Gateway Timeout errors? (Other than somehow find better internet in my country?)

Thanks.

Read more »

 
 
 
 
  • Vote: I like it
  • +11
  • Vote: I do not like it

By eipie, 7 years ago, In English,

I know I did not do particularly well in Div2 129 but I did participate in it.

No rating increment/decrement happened for me. Thoughts?

Does it just not show up in case my rating is +0? (I do not know why it is exactly though)

I was in room 12 of div2 129

Read more »

 
 
 
 
  • Vote: I like it
  • -3
  • Vote: I do not like it

By eipie, 7 years ago, In English,

Can someone explain to me why I get the error message: "Can't remove virtual contest, because you have some actions in this contest" when I try to delete a virtual contest of mine?

Has anyone else faced this issue? Thanks :)

Read more »

 
 
 
 
  • Vote: I like it
  • -3
  • Vote: I do not like it

By eipie, 7 years ago, In English,

Can someone help me find the java version specific bug or whatever here? Or the problem with my code Thanks!

Here is my code for the Petr# problem (113B - Petr#)

import java.util.*;
public class B {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String input = sc.next();
		String start = sc.next();
		String finish = sc.next();
		
		ArrayList<Integer> s = new ArrayList<Integer>();
		ArrayList<Integer> e = new ArrayList<Integer>();
		for (int i=0; i<input.length(); i++) {
			if (startsWith(input,start,i)) {
				s.add(i);
			}
			if (startsWith(input,finish,i)) {
				e.add(i);
			}
		}
		
		if (s.isEmpty() || e.isEmpty()) {
			System.out.println(0);
			return;
		}
				
		if (start.equals(finish)) {
			System.out.println(s.size());
			return;
		}
		
		HashSet<Integer> ans = new HashSet<Integer>();
		for (int i=0; i<s.size(); i++) {
			for (int j=0; j<e.size(); j++) {
				int x = e.get(j)-s.get(i);
				if (x<0)
					continue;
				ans.add(x);	
			}
		}
		System.out.println(ans.size());
	}
	
	private static boolean startsWith(String str, String search, int start) {
		if (str.length()-start < search.length())
			return false;		
		for (int i=0; i<search.length(); i++)
			if (str.charAt(start+i) != search.charAt(i))
				return false;
		return true;
	}
}

The input in question is: (the first word is split into two lines please make it ONE word)

adsflkdsjfmbvcxnvaeshjadskfnxvbrusighjdzbnxmgaldfbhzxnvbxcmvgaslugkzxcnbvxcnbvaselugtnbvzncblasjdfgnvbxzfalsdjgfadsgvbxcnvsayurqejhkdjzbvnzcgbgaskehgfmnbvmcvgasdgfnmbcvzmcvgadjtgaweuvxzcbvnxzcbfkahsgfbvznvbxzckugadjfasbvnzxcbvkdsjghdfskjbvxzmnbfalsefgsadhjvbznvbzxkngfsadkhfbxcvznbvkaedgfabvzncxvbzxckmbasdjgfbvnbzmvbzljrgfsahjvbxcnvbasdhfgjdsgvbxcnbasldgfsdujfdsjvbxmvbasdkhgfasdjfbasdnfbnvbxckvbadsuilfhadsjfbzvxcnbcxfgadujgadsjbvnbzvrjlghdsjhvnxncbvlsadjhadjshfasdkljfgfbdghfjbjfiadjvcnvsdjfbdvbjdshfkjehfldsakjhfjsadkhfksadljhfjsadklhfdsjakhfiewuyriubvznbxcvncbvzxuwqejnxcffeivbdqwetgrfvxcjmshbdfkjhwqrerfhsdjkvhbjwegfbxcdfjshnvhjdvhbfjsfdhbvdsajffvdhsabjfhvbeuofyrvboewufsadjhfvasdjhfvbsadlfvhsadljhfvbsadlvfsad

lkvfhsadljfvbhasdlfvbewvbwyufvbsaduyfvbsadjvhzlbvzxjchbvdufhdasjvfbhyeuwvbfuadhvbjsadvbfasbdhvfaoiuryweqiuyruqoweiyrsdfbhvdsjfhabsldfbvejhdsaiufyewiuqryqweiouvyrbwqeiubvriuwqeyvbbajsdhfvasdkfasdljkbfvhhajlsdhfvbcxzgahsjdkchnbxnuigeahfgdshfgdaskhfgsadkhfgadshfgdsahfgdaskhsadkfhgsadkhfgsadfkhdgsfkgdsakhfgdaskhfgasdkfgasdhfgdsafhadsgfksagfhkdsagfksadhfgbzncvbxnzcvbdlsjfhdsajflgwehjgtrdznbvcxmxcvblasdjhfaljsdkfhalsdkjfhasdkljfhalsdkjfhiewuytololonobodywillseethatdsjkfjaljxcmvxcbghfdjghdfjkhgdfjlsghfsdljhsdflghdfsjghfsdjlbcxnvnmcxzmnvxzcvbzxcmvbzxmcvbzxcnvbdsuagtywequityudhgjdkshgjklsdhgjfdkhgjlfsdkghlsdkfghdjfhgfdjghjkasdfhldsakjhfasjdklfhxcvnzbxcvnzbcxmvzcxhdsafjlsadjfhsadljhfieurytoueqytuihdfgkhsdflkjhvtyuweturetyurweotpqoewtguregdjkgbcxzmvbczvmzbxcnvzxsdahfuleyuyqetuiy
ad
iy

Read more »

 
 
 
 
  • Vote: I like it
  • +6
  • Vote: I do not like it