Skip to content

Instantly share code, notes, and snippets.

View 1kohei1's full-sized avatar

Kohei 1kohei1

  • Google
  • Santa Clara
View GitHub Profile
@1kohei1
1kohei1 / hour minute input directive3.markdown
Last active July 16, 2020 08:39
hour minute input directive3
@1kohei1
1kohei1 / a^3+b^3=c^3+d^3.markdown
Created August 13, 2015 01:25
a^3+b^3=c^3+d^3
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct trie {
int isWord;
struct trie* nextLetter[26];
};
const int MAX_WORD_LENGTH = 20;
import java.util.Scanner;
import java.util.Arrays;
import java.util.ArrayList;
public class Dijkstra {
static int[][] map;
static int[] dist;
static int[] visited;
import java.util.Scanner;
import java.util.Arrays;
public class Playground {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int k = scanner.nextInt();
#include <stdio.h>
#include <stdlib.h>
struct node {
int data;
struct node* left;
struct node* right;
};
struct node* createNode(int data);
import java.util.Scanner;
public class Playground {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int row = scanner.nextInt();
int col = scanner.nextInt();
int numRotations = scanner.nextInt();
import java.util.Scanner;
public class Playground {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int row = scanner.nextInt();
int col = scanner.nextInt();
int numRotations = scanner.nextInt();
import java.util.Scanner;
public class Playground2 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int[] nums = new int[n];