Skip to content

Instantly share code, notes, and snippets.

@myguaguagua
myguaguagua / zhaoshu.cpp
Last active August 10, 2018 08:06
学妹的思考题
#include <iostream>
using namespace std;
int main() {
int T;
cin >> T;
while (T--) {
int n;
cin >> n;
int max_xyz = -1;
@myguaguagua
myguaguagua / a.c
Created September 13, 2017 07:59
ssss
#include "STC15F2K60S2.H"
#include <intrins.h>
#define uchar unsigned char
#define uint unsigned int
#define ADC_POWER 0x80 // adc总开关
#define ADC_FLAG 0x10
#define ADC_START 0x08
#define ADC_SPEED_90 0x60
@myguaguagua
myguaguagua / KnowFromBirth.cpp
Created July 29, 2017 13:30
判断年龄,星座, 属相
#include<stdio.h>
char *sign[] = { // 星座
"白羊座",
"金牛座",
"双子座",
"巨蟹座",
"狮子座",
"处女座",
"天秤座",
@myguaguagua
myguaguagua / min_path.cpp
Created June 3, 2017 01:58
分支限界法最短单源路径
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
struct Node {
int number;
int distance;
};