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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie-edge"> | |
<title>Document</title> | |
<style> | |
main .gnb{ | |
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 pygame | |
import time | |
clock = pygame.time.Clock() | |
pygame.init() | |
screen = pygame.display.set_mode((400,400)) | |
done = False | |
x=0 | |
y=0 | |
g=200 | |
h=200 |
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
# Define linear regression function | |
# You may use sklearn.linear_model.LinearRegression | |
# Your code here | |
def LinReg(X, y): | |
r = LinearRegression() | |
return r.fit(X, y) | |
# End your code | |
# Basic settings. DO NOT MODIFY | |
selected_feature = [] |
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 A(): | |
attr = "Cls attr" | |
instance1 = A() | |
instance2 = A() | |
print("I1 attr", instance1.attr) | |
instance2.attr = "New Attr" | |
print("I2 attr", instance2.attr) | |
print("I1 attr", instance1.attr) | |
A.attr = "New Cls" |
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 java.util.Scanner; | |
public class LuxuryHelloJava { | |
static char k; | |
static int number; | |
public static void main(String[] args) { | |
Scanner input = new Scanner(System.in); | |
System.out.print("입력하고싶은 문자는?"); | |
k = input.nextLine().charAt(0); |
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> | |
#include <queue> | |
#include <set> | |
typedef struct point { | |
long long x, y; | |
int num; | |
bool lr; |
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 Node: | |
def __init__(self, value): | |
self.value = value | |
self.left = None | |
self.right = None | |
class Tree: | |
def __init__(self): | |
self.root = None | |
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 nt[100005], team[100005], n; | |
int start, dap; | |
void visit(int v){ | |
int next = nt[v]; | |
team[v] = -start; | |
if( team[next] == 0 ){ | |
visit(next); | |
if( team[next] == 1 && dap > 0 ){ | |
team[v] = 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 arr[80000]; | |
int building[80000]; | |
int index[80000]; | |
int result[80000]; | |
int main() | |
{ | |
int n; |
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 arr[80000]; | |
int building[80000]; | |
int index[80000]; | |
int result[80000]; | |
int main() | |
{ | |
int n; |