Skip to content

Instantly share code, notes, and snippets.

View Baekjoon's full-sized avatar

Baekjoon Choi Baekjoon

View GitHub Profile
@Baekjoon
Baekjoon / Main.java
Created November 17, 2015 16:00
1000 Java
import java.util.*;
public class Main {
public static void main(String[] args) {
new Main().solve();
}
void solve(){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
@Baekjoon
Baekjoon / 11279.cc
Created October 24, 2015 23:29
11279
#include <cstdio>
#include <algorithm>
using namespace std;
int heap[100001];
int hn;
int pop() {
int ans = heap[1];
heap[1] = heap[hn];
heap[hn--] = 0;
for (int i=1; i*2 <= hn;) {
@Baekjoon
Baekjoon / 10951.java
Created September 5, 2015 17:29
10951
import java.util.*;
public class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int a, b;
while (sc.hasNextInt()) {
a = sc.nextInt();
b = sc.nextInt();
System.out.println(a + b);
}
@Baekjoon
Baekjoon / 10951.cc
Created September 5, 2015 17:26
10951
#include <iostream>
using namespace std;
int main() {
int t;
int a,b;
while (cin >> a >> b) {
cout << a+b << '\n';
}
return 0;
}
@Baekjoon
Baekjoon / 10951.cc
Created September 5, 2015 17:28
10951
#include <cstdio>
using namespace std;
int main() {
int t;
int a,b;
while (scanf("%d %d",&a,&b) == 2) {
printf("%d\n",a+b);
}
return 0;
}
@Baekjoon
Baekjoon / 10950.java
Created September 5, 2015 17:25
10950
import java.util.*;
public class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
while (t-- > 0) {
int a, b;
a = sc.nextInt();
b = sc.nextInt();
System.out.println(a + b);
@Baekjoon
Baekjoon / 10950.cc
Last active July 6, 2017 15:42
10950
#include <iostream>
using namespace std;
int main() {
int t;
cin >> t;
int a,b;
while (t--) {
cin >> a >> b;
cout << a+b << '\n';
}
@Baekjoon
Baekjoon / 10950.cc
Last active July 6, 2017 15:42
10950
#include <cstdio>
using namespace std;
int main() {
int t;
int a,b;
scanf("%d",&t);
while (t--) {
scanf("%d %d",&a,&b);
printf("%d\n",a+b);
}
@Baekjoon
Baekjoon / 1000.java
Created September 5, 2015 17:19
1000
import java.util.*;
public class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int a, b;
a = sc.nextInt();
b = sc.nextInt();
System.out.println(a + b);
}
}
@Baekjoon
Baekjoon / 1000.cc
Created September 5, 2015 17:17
1000
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a+b << '\n';
return 0;
}