This file contains 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
interface Room { | |
name: string; | |
floor: string; | |
unit: string; | |
buildId: string; | |
} | |
interface Build { | |
buildId: string; | |
unit: Array<Unit>; | |
} |
This file contains 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="zh-hans"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<style> | |
#main { | |
border: 1px solid #000; | |
width: 200px; |
This file contains 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 * as mongoose from 'mongoose'; | |
import Schema = mongoose.Schema; | |
import Document = mongoose.Document; | |
var UserSchema = new Schema({ | |
name: String, | |
password: String, | |
email: String, | |
head: String |
This file contains 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
module.exports = function (str ,num) { | |
var line = Math.floor(str.length / num); | |
var begin = 0; | |
var end = line; | |
var temp = []; | |
//切割str | |
for (var i = line * num - str.length; i; i++) { | |
temp.push(str.slice(begin, ++end)); | |
begin = end;end += line; | |
} |
This file contains 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
/* | |
作者:youye | |
题目:p1201 最小数和最大数 | |
*/ | |
#include <iostream> | |
#include <algorithm> | |
#include <cstdio> | |
using namespace std; |
This file contains 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
/* | |
hdu-1087 | |
Super Jumping! Jumping! Jumping! | |
http://acm.hdu.edu.cn/showproblem.php?pid=1087 | |
*/ | |
#include <iostream> | |
#include <cstdio> | |
using namespace std; |
This file contains 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 <cstdio> | |
using namespace std; | |
int main(){ | |
#ifndef ONLINE_JUDGE | |
freopen("in", "r", stdin); | |
//freopen("out", "w", stdout); | |
#endif |