2018年4月6日

leetcode 3 Longest Substring Without Repeating Characters

摘要: 题目: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the 阅读全文

posted @ 2018-04-06 21:27 Tracy-mac 阅读(89) 评论(0) 推荐(0) 编辑

清华机试-代理服务器

摘要: 题目描述 使用代理服务器能够在一定程度上隐藏客户端信息,从而保护用户在互联网上的隐私。我们知道n个代理服务器的IP地址,现在要用它们去访问m个服务器。这 m 个服务器的 IP 地址和访问顺序也已经给出。系统在同一时刻只能使用一个代理服务器,并要求不能用代理服务器去访问和它 IP地址相同的服务器(不然 阅读全文

posted @ 2018-04-06 21:22 Tracy-mac 阅读(170) 评论(0) 推荐(0) 编辑

清华机试-约数的个数

摘要: 题目描述 输入n个整数,依次输出每个数的约数的个数 输入描述: 输入的第一行为N,即数组的个数(N<=1000) 接下来的1行包括N个整数,其中每个数的范围为(1<=Num<=1000000000) 当N=0时输入结束。 输出描述: 可能有多组输入数据,对于每组输入数据, 输出N行,其中每一行对应上 阅读全文

posted @ 2018-04-06 20:20 Tracy-mac 阅读(388) 评论(0) 推荐(0) 编辑

清华机试-成绩排序

摘要: 题目:输入任意(用户,成绩)序列,可以获得成绩从高到低或从低到高的排列,相同成绩 都按先录入排列在前的规则处理。 例示: jack 70 peter 96 Tom 70 smith 67 从高到低 成绩 peter 96 jack 70 Tom 70 smith 67 从低到高 smith 67 T 阅读全文

posted @ 2018-04-06 19:48 Tracy-mac 阅读(300) 评论(0) 推荐(0) 编辑

2018年2月5日

vpn连接之后上不了网

摘要: 今天使用cisco anyconnect连接访问学校服务器,连接上去之后网就用不了了。 在网上查找相关的资料后,发现有说打开控制面板》网络和internet》网络连接》网络连接属性》属性(右击)》ipv4》将远程连接使用默认网关前面的√去掉就可以了。问题是我压根就没有这个选项,好像是win10的一个 阅读全文

posted @ 2018-02-05 23:02 Tracy-mac 阅读(1) 评论(0) 推荐(0) 编辑

2018年1月22日

leetcode 15 3Sum

摘要: 题目: Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum 阅读全文

posted @ 2018-01-22 15:03 Tracy-mac 阅读(93) 评论(0) 推荐(0) 编辑

2018年1月20日

leetcode 2 Add Two Numbers(链表)

摘要: 题目: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes co 阅读全文

posted @ 2018-01-20 15:04 Tracy-mac 阅读(96) 评论(0) 推荐(0) 编辑

leetcode 11 Container With Most Water

摘要: 题意: Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two e 阅读全文

posted @ 2018-01-20 14:36 Tracy-mac 阅读(119) 评论(0) 推荐(0) 编辑

2017年12月3日

cin输入详解

摘要: 基本原理: 一次输入过程是这样的,当一次键盘输入结束时会将输入的数据存入输入缓冲区,而cin函数直接从输入缓冲区中取数据。当输入缓冲区中没有数据时,会请求键盘输入;否则,不会请求。 一、cin>> 输入结束条件:遇到enter,space,tab字符; 读取时对字符的处理:会自动跳过enter,sp 阅读全文

posted @ 2017-12-03 21:05 Tracy-mac 阅读(2189) 评论(0) 推荐(0) 编辑

2017年6月10日

csuoj 漫漫上学路

摘要: Description 对于csuxushu来说,能够在CSU(California State University)上学是他一生的荣幸。CSU校园内的道路设计的十分精巧,由n+1条水平道路和n+1条竖直道路等距交错而成,充分体现了校园深厚的文化底蕴。然而不幸的是CS市每到夏季,天降大雨,使得CS 阅读全文

posted @ 2017-06-10 00:58 Tracy-mac 阅读(201) 评论(0) 推荐(0) 编辑

导航