Skip to content

Instantly share code, notes, and snippets.

View hanjae-jea's full-sized avatar

Hanjae hanjae-jea

View GitHub Profile
#include<iostream>
#include<algorithm>
using namespace std;
struct point {int x, y;};
@hanjae-jea
hanjae-jea / urls.py
Created July 30, 2018 07:38
nonmame
from django.conf.urls import include, url
from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^bookmark/', include('bookmark.urls', namespace='bookmark')),
url(r'^blog/', include('blog.urls', namespace='blog')),
]
@hanjae-jea
hanjae-jea / 11404.cpp
Last active August 8, 2018 07:28
0808
#include <stdio.h>
int graph[105][105];
int main()
{
int n, m;
scanf("%d", &n);
scanf("%d", &m);
for (int i = 0; i < m; i++) {
class MyClass:
myVar = 1
def HelloWorld(self):
MyClass.myVar = 2
self.myVar = 3
a = MyClass()
print(MyClass.myVar)
print(a.myVar)
#include <stdio.h>
int n;
void f1(int n)
{
int ok = 1;
for (int i = 2; i<n; i++) {
if (n%i == 0)
ok--;
}
if (ok == 1)
#include <stdio.h>
int max, mlen, cnt, b, check[10000000];
int ubak(long long int a) {
if (a<10000000 && check[a] != 0)
return cnt + check[a];
cnt++;
if (a == 1)
return cnt;
#include <stdio.h>
#include <algorithm>
int main()
{
int a[10];
for (int i = 0; i < 10; i++) {
scanf("%d", &a[i]); // scanf("%d", a+i) 랑 같은 코드
}
#include <stdio.h>
int n, arr[1000000], k, str[100000][20], il, iu;
void lower_bound(int left, int right, int number)
{
int mid = (left + right) / 2;
if (left >= right) {
il = left;
return;
import smtplib
from email.mime.text import MIMEText
from time import sleep
from selenium import webdriver
smtp = smtplib.SMTP('smtp.gmail.com', 587)
smtp.ehlo()
smtp.starttls()
smtp.login('[email protected]', '')
PLmsg = MIMEText('프언떴다')
PLmsg['Subject'] = '프언떳다'
from tkinter import *
from tkinter import messagebox
class Person:
def __init__(self, heightV, weightV, nameV):
self.height = heightV
self.weight = weightV
self.name = weightV
self.dist = 0