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
/* http://lvduit.com */ | |
#include <iostream> | |
#include <time.h> | |
using namespace std; | |
const int MIN = 1; | |
const int MAX = 50; | |
typedef struct dNode { |
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 <stdio.h> | |
#include <time.h> | |
using namespace std; | |
const int N = 5; | |
const int MIN = 1; | |
const int MAX = 50; | |
typedef struct _tnode { |
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
/* http://lvduit.com */ | |
#include <iostream> | |
#include <time.h> | |
using namespace std; | |
const int MIN = 1; | |
const int MAX = 50; | |
typedef struct dNode { |
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 MAX 1000 | |
int main() { | |
FILE *input, *output; | |
int n; // Số lượng phần tử n | |
int array[MAX]; // Mảng aray chứa n số tiếp theo | |
input = fopen("input.txt","rt"); // Mở file input | |
fscanf(input,"%d",&n); // Nhập giá trị 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> | |
#define MAX 1000 | |
int main() { | |
FILE *input, *output; | |
int n; // Số lượng phần tử n | |
int array[MAX]; // Mảng aray chứa n số tiếp theo | |
input = fopen("input.txt","rt"); // Mở file input |
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 main() { | |
int m, n, i; | |
int j = -1, k = -1; | |
printf("Input m, n, i: "); | |
scanf_s("%d%d%d", &m, &n, &i); | |
for (int x = 0; x <= m; x++) | |
for (int y = 0; y <= n; 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
-- Init DB | |
CREATE DATABASE QuanLySieuThi; | |
USE QuanLySieuThi; | |
DROP TABLE KHACHHANG; | |
CREATE TABLE KHACHHANG ( | |
MaKH char(4) PRIMARY KEY NOT NULL, | |
HoTen varchar(40) NOT NULL, | |
DChi varchar(50), | |
SoDt varchar(20), |
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
CREATE DATABASE QLBH | |
----------------------------------------------------- | |
----------------------------------------------------- | |
--------------------------------------------- | |
-- KHACHANG | |
CREATE TABLE KHACHHANG( | |
MAKH char(4) not null, | |
HOTEN varchar(40), | |
DCHI varchar(50), | |
SODT varchar(20), |
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
lib = | |
fs : require('fs') | |
u : require('underscore') | |
https : require('https') | |
url : require('url') | |
appendToFile = (data) -> | |
lib.fs.open 'fbdata', 'a', (e, fd) -> | |
lib.fs.write fd, data, null, 'utf8', -> | |
lib.fs.close fd, -> |
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 width, height, pool, case_id = 0; | |
int field[103][103]; | |
void rec(int x,int y) { | |
if (field[x][y]!=0) return; | |
field[x][y]=pool; | |
if (x<=height) rec(x+1,y); |