Skip to content

Instantly share code, notes, and snippets.

View Baekjoon's full-sized avatar

Baekjoon Choi Baekjoon

View GitHub Profile
@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 / 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;
}
@Baekjoon
Baekjoon / 1000.cc
Created September 5, 2015 17:16
1000
#include <cstdio>
int main() {
int a, b;
scanf("%d %d",&a,&b);
printf("%d\n",a+b);
return 0;
}
@Baekjoon
Baekjoon / 추첨.py
Created September 4, 2015 12:53
추첨
import random
people = list(range(1,37+1))
for i in range(100):
random.shuffle(people)
print people[:29]
print people[29:]
@Baekjoon
Baekjoon / trash-email.json
Created August 5, 2015 12:48
Disposable Email Address (json)
[{"trash_domain": "0-mail.com"}, {"trash_domain": "0815.ru"}, {"trash_domain": "0815.ru0clickemail.com"}, {"trash_domain": "0815.su"}, {"trash_domain": "0clickemail.com"}, {"trash_domain": "0wnd.net"}, {"trash_domain": "0wnd.org"}, {"trash_domain": "10minutemail.com"}, {"trash_domain": "10minutemail.de"}, {"trash_domain": "123-m.com"}, {"trash_domain": "126.com"}, {"trash_domain": "139.com"}, {"trash_domain": "163.com"}, {"trash_domain": "1chuan.com"}, {"trash_domain": "1pad.de"}, {"trash_domain": "1zhuan.com"}, {"trash_domain": "20mail.it"}, {"trash_domain": "20minutemail.com"}, {"trash_domain": "21cn.com"}, {"trash_domain": "2prong.com"}, {"trash_domain": "30minutemail.com"}, {"trash_domain": "33mail.com"}, {"trash_domain": "3d-painting.com"}, {"trash_domain": "4warding.com"}, {"trash_domain": "4warding.net"}, {"trash_domain": "4warding.org"}, {"trash_domain": "60minutemail.com"}, {"trash_domain": "675hosting.com"}, {"trash_domain": "675hosting.net"}, {"trash_domain": "675hosting.org"}, {"trash_domain": "6p
#include <iostream>
using namespace std;
int main() {
int sum = 0;
for (int i = 2; i <= 10; i+=2) {
cout << i << endl;
}
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int sum = 0;
for (int i = 1; i <= n; ++i) {
sum += i;
for (1; 2; 3) {
4;
}
#include <iostream>
using namespace std;
int main() {
// 1부터 10까지 출력하는 프로그램
for (int i = 1; i <= 10; i++) {
cout << i << endl;
}
// 10부터 1까지 출력하는 프로그램