Skip to content

Instantly share code, notes, and snippets.

Avatar

Rayed Bin Wahed rayedbar

View GitHub Profile
@rayedbar
rayedbar / gist:101f8b62e748389075ee
Last active Aug 29, 2015
UVA 10583. I get correct answers for the test cases but WA upon submission. Any Insighters!
View gist:101f8b62e748389075ee
#include <iostream>
#include <stdio.h>
#include <cstdio>
#include <algorithm>
#include <cstring>
using namespace std;
int parent[50005];
@rayedbar
rayedbar / Main.java
Created Jun 30, 2015
A - Atoms in the Lab
View Main.java
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;
/**
* Created by Rayed on 30-Jun-15.
*/
class Main implements Runnable {
@rayedbar
rayedbar / Problem J - Primary Arithmetic
Created Jun 20, 2015
Why is this code generating a runtime error upon submission. In my IDE i get the desired output. Please help!
View Problem J - Primary Arithmetic
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
/**
* Created by Rayed on 19-Jun-15.
*/
class Main {
You can’t perform that action at this time.