Skip to content

Instantly share code, notes, and snippets.

View Krypton3's full-sized avatar
🏠
Working from home

H. M. Mahedi Hasan Krypton3

🏠
Working from home
View GitHub Profile
@Krypton3
Krypton3 / Dynamic Programming (Java)
Last active August 29, 2015 14:26
495 - Fibonacci Freeze (UVA Online Judge)
//Author: Krypton3
//Dynamic problem
import java.math.BigInteger;
import java.util.Scanner;
public class Uva_495 {
public static void main(String[] args) {
BigInteger[] fib = fib(5001);
Scanner in= new Scanner(System.in);
while(in.hasNext()){
int n = in.nextInt();
@Krypton3
Krypton3 / 1010 - Knights in Chessboard (C++)
Last active August 29, 2015 14:26
Knights in Chessboard (lightoj)
//Author: Krypton3
//simulation problem/formula finding
#include<bits/stdc++.h>
using namespace std;
int m,n;
int main()
{
int test,ans;
scanf("%d",&test);
for(int p=1;p<=test;p++){
@Krypton3
Krypton3 / 1113 - Discover the Web (Java)
Last active August 29, 2015 14:26
1113 - Discover the Web (lightoj)
//Author: Krypton3
//Stack related
import java.util.Scanner;
import java.util.Stack;
public class lightoj1113 {
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
int testCase;
testCase = in.nextInt();
String query[];
@Krypton3
Krypton3 / 1182 - Parity (C++)
Last active August 29, 2015 14:26
1182 - Parity (lightoj)
//Author: Krypton3
//Binary related problem
#include<bits/stdc++.h>
using namespace std;
int main()
{
int test,num;
scanf("%d",&test);
for(int p=1;p<=test;p++){
@Krypton3
Krypton3 / 1015 - Brush (I) (lightoj)
Created August 4, 2015 16:23
1015 - Brush (I) (c++)
//Author: Krypton3
//Basic problem
#include<bits/stdc++.h>
using namespace std;
//int arr[1005];
int main()
{
int test,total;
scanf("%d",&test);
for(int p=1;p<=test;p++){
@Krypton3
Krypton3 / 1433 - Minimum Arc Distance (lightoj)
Created August 4, 2015 16:59
1433 - Minimum Arc Distance (C++)
//Author: Krypton3
//Geometry
#include<bits/stdc++.h>
using namespace std;
int main()
{
int test;
double ox,oy,ax,ay,bx,by;
scanf("%d",&test);
for(int p=1;p<=test;p++){
@Krypton3
Krypton3 / 1020 - A Childhood Game (lightoj)
Created August 4, 2015 18:55
1020 - A Childhood Game (C++)
//Author: Krypton3
//Basic Simulation/Hints: Grundy numbers for competitive programming
#include<bits/stdc++.h>
using namespace std;
int main()
{
int test;
scanf("%d",&test);
for(int p=1;p<=test;p++){
long long a=1,b=2;
@Krypton3
Krypton3 / 1227 - Boiled Eggs (lightoj)
Created August 5, 2015 15:02
1227 - Boiled Eggs (C++)
//Author: Krypton3
//Basic problem
#include<bits/stdc++.h>
using namespace std;
int arr[32];
int main()
{
int test;
scanf("%d",&test);
int n,p,q;
@Krypton3
Krypton3 / Main Code Of Parsing Information:
Created August 9, 2015 15:12
Parsing Data from Different Online Judges (User Information)
<?php
include("simple_html_dom.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Coding Nest</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
@Krypton3
Krypton3 / 1116 - Ekka Dokka(lightoj)
Created August 10, 2015 14:38
1116 - Ekka Dokka (C++)
//Author: Krypton3
//Basic Problem and you need to catch the catch :P :P
#include<bits/stdc++.h>
using namespace std;
int main()
{
int test,m;
long long int w;
scanf("%d",&test);
for(int p=1;p<=test;p++){