This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<algorithm> | |
using namespace std; | |
struct point {int x, y;}; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')), | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyClass: | |
myVar = 1 | |
def HelloWorld(self): | |
MyClass.myVar = 2 | |
self.myVar = 3 | |
a = MyClass() | |
print(MyClass.myVar) | |
print(a.myVar) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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) 랑 같은 코드 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] = '프언떳다' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |