# data[].attributes.attachment_link.readable_text
def hanoi(n, start, end, temp):
    print(n)
    if n == 1:
        print(start,end)
        return
    hanoi(n - 1, start, temp, end)
    print(start,end)
    hanoi(n - 1, temp, end, start)
while True:
    n = int(input("n = "))
    hanoi(n, "1", "3", "2")

# data[].attributes.body
import curses

import time

def print_table(stdscr, r):

for i, row in enumerate(r):

for j, number in enumerate(row):

stdscr.addstr(i, j * 4, f'{number:>3}')

def main(stdscr: curses.window):

stdscr.clear()

r = [[i * 10 + j for j in range(0, 10)] for i in range(0, 10)]

for i in range(0, 10):

r[0][0] = i * 100

print_table(stdscr, r)

stdscr.refresh()

time.sleep(0.1)

time.sleep(5)

curses.wrapper(main)

# data[].attributes.attachment_link.readable_text
import os
import os.path
def wfile():
    k = input("new file name:")
    f= open(k, 'w',encoding = 'utf-8')
    i = 1
    while True:
        data = input(str(i)+':')+'\n'
        if data=='exit'+'\n':
            f.close()
            break
        f.write(data)
        i+=1
    
def rfile():
    k = input("file name:")
    if os.path.isfile(k):
        f = open(k,'r',encoding = 'utf-8')
        i = 1
        while True:
            line = f.readline()
            if not line : break
            line = line.strip()
            print(str(i)+":"+line)
            i+=1
        f.close()
    else:
        print("\""+k+"\" is not file")

def afile():
    k = input("file name:")
    if os.path.isfile(k):
        f = open(k,'r',encoding = 'utf-8')
        lines = f.readlines()
        i = 0
        for line in lines:
            line = line.strip()
            print(str(i+1)+":"+line)
            i += 1
        f.close()
        f = open(k,'a',encoding = 'utf-8')
        while True:
            data = input(str(i+1)+':')+'\n'
            if data=='exit'+'\n':
                f.close()
                break
            f.write(data)
            i+=1
    else:
        print("\""+k+"\" is not file")

def cfile():
    k = input("file name(clear,create):")
    f= open(k, 'w',encoding = 'utf-8')
    f.close()
    print("file was created.")

def mfile():
    k = input("new file name:")
    f= open(k, 'w',encoding = 'utf-8')
    i = 1
    while True:
        data = input(str(i)+':')+'\n'
        if data=='exit'+'\n':
            f.close()
            break
        f.write(data)
        i+=1

while True:
    n = input(">>")
    if n == 'exit':
        break
    elif n == 'wfile':
        wfile()
    elif n == 'rfile':
        rfile()
    elif n == 'afile':
        afile()
    elif n == 'cfile':
        cfile()
    elif n == 'mfile':
        mfile()
    elif n == 'cls' or n == 'clear':
        os.system("cls")
    elif n[:6] == 'print ':
        print(n[6:])
    else : print("\""+n+"\" is not valid")



# data[].attributes.attachment_link.readable_text
#include <iostream>
#include <windows.h>
#include <map>
using namespace std;

void gotoxy(int x,int y){ 
 COORD pos={4*x,2*y};
 SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos); 
}

int main(){
	std::map<std::pair<int, int>, int> coordinates;
	int n, ox, oy;
	cout << "������ ���� ������������(������,13����)\n";
	while(true){
		cin >> n;
		if(n%2 == 0){
			cout << "���� ����.\n";
			continue;
		}
		if(n>13){
			cout << "������ ���� ������.(13����)\n";
			continue;
		}
		else{
			break;
		}
	}
	system("cls");
	cout << n << "*" << n << "������ ��������.\n";
	int k = n/2;
	ox = n-k;
	oy = n-(2*k);
	for(int i=1; i<=n*n; i++){
		gotoxy(ox,oy);
		if (coordinates.find({ox+1, oy-1}) != coordinates.end()||coordinates.find({ox+1-n, oy-1+n}) != coordinates.end()) {
			oy+=1;
			coordinates[{ox, oy}] = i;
			cout << i;
			Sleep(30);
        	continue;
    	}
    	coordinates[{ox, oy}] = i;
		cout << i;
		ox+=1;
		oy-=1;
		if (oy == 0){
			oy+=n;
		}
		if (ox == n+1){
			ox-=n;
		}
		Sleep(30);
	}
	cout << "\n\n";
	system("pause");
	return 0;
}

# data[].attributes.body
<!DOCTYPE html>

<html>

<head>

<style>

@import url('https://fonts.googleapis.com/css2?family=Emblema+One&display=swap');

body{

background: #FF416C; /* fallback for old browsers */

background: -webkit-linear-gradient(to right, #FF4B2B, #FF416C); /* Chrome 10-25, Safari 5.1-6 */

background: linear-gradient(to right, #FF4B2B, #FF416C); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

}

h1{

font-family: "Emblema One", system-ui;

font-weight: 400;

font-style: normal;

font-size: 90px;

color: white;

margin:0;

line-height:60px;

padding-bottom: 11px;

}

</style>

<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>뿌드득</title>

</head>

<body>

<div style="text-align:center;">

<h1>max</h1>

<hr>

<a href="https://www.youtube.com/"><img src="youtube.png" height="65px" width="100px"></a>

</div>

</body>

</html>