Skip to content

Instantly share code, notes, and snippets.

View nattybear's full-sized avatar

Joonkyu Park nattybear

View GitHub Profile
@nattybear
nattybear / helloworld.c
Last active June 4, 2017 13:45
헤르아의 알고스팟 도전기
#include <stdio.h>
int main() {
int num;
printf("입력: ");
scanf("%d", &num);
while (num--) {
printf("Hello Algospot!\n");
}
// Hello!
#include <stdio.h>
int main() {
printf("Hello\n");
return 0;
}
// Hello! 메세지 출력
#include <iostream>
int main() {
std::cout << "Hello" << std::endl;
return 0;
}
#include <iostream>
using namespace std;
int main() {
cout << "Hello" << endl;
return 0;
}
@nattybear
nattybear / sum.md
Created June 5, 2017 02:30
두번째 과제 - 조건에 맞는 코드를 작성해보자!

아래와 같은 조건을 만족하는 코드를 작성하세요.

  • num1이라는 변수에 숫자 1을 할당합니다.
  • num2라는 변수에 숫자 2를 할당합니다.
  • sum이라는 변수에 변수 num1과 변수 num2를 더한 값을 할당합니다.
  • sum 변수의 내용을 화면에 출력합니다.

smsDeleteMessage

Deletes a message.

  • id (Integer)
  • returns: (Boolean) True if the message was deleted

smsGetAttributes

from android import Android
droid = Android()
droid.makeToast("Hello Android!")
from android import Android
from sqlite3 import connect
droid = Android()
id_list = droid.smsGetMessageIds(True)
con = connect("sendedSMS.db")
cur = con.cursor()
from sqlite3 import connect
con = connect("sendedSMS.db")
cur = con.cursor()
cur.execute("CONNECT
@nattybear
nattybear / binary.c
Created June 5, 2017 15:34
정보처리 알고리즘 문제를 C언어로 구현
#include <stdio.h>
int main() {
// 2진수가 저장될 배열 A를 선언한다.
int A[10] = {};
int B;
// 2진수로 변환할 10진수를 입력 받는다.
scanf("%d", &B);