天生我材必有用,千金散尽还复来。 仰天大笑出门去,我辈岂是蓬蒿人。 大鹏一日同风起,扶摇直上九万里。 十步杀一人,千里不留行。 事了拂衣去,深藏身与名。 安能摧眉折腰事权贵,使我不得开心颜! 且乐生前一杯酒,何须身后千载名? 愿将腰下剑,直为斩楼兰。
 
上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: 题干: Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string. Example 1 阅读全文
posted @ 2019-02-05 23:49 gudy 阅读(107) 评论(0) 推荐(0)
摘要: 之前上课做过一次,这次在官网上下下来,好像有点区别,不过大体差不多。 环境是ubuntu32 先修改bits.c文件,按要求实现内部函数 命令行执行: make btest ./btest 然后会看到对你修改后的函数的评判。 具体函数: 1 //1 2 /* 3 * bitXor - x^y usi 阅读全文
posted @ 2019-01-24 18:19 gudy 阅读(1619) 评论(1) 推荐(0)
摘要: leetcode 题目: Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. Example 1: Example 2: 阅读全文
posted @ 2019-01-20 09:28 gudy 阅读(133) 评论(0) 推荐(0)
摘要: #include<stdio.h>#include<unistd.h>#include<sys/wait.h>int main(){ int fd[2]; char buf[80]; pid_t pid; pipe(fd); if((pid = fork()) > 0){ printf("This 阅读全文
posted @ 2018-12-29 10:08 gudy 阅读(124) 评论(0) 推荐(0)
摘要: 1 #coding=utf-8 2 import socket 3 import time 4 import sys 5 6 def portScanner(ip,port): 7 server = (ip,port) 8 sockfd = socket.socket(socket.AF_INET,socket.SOCK_STREAM) 9... 阅读全文
posted @ 2018-12-26 13:53 gudy 阅读(531) 评论(0) 推荐(0)
摘要: sql注入 1 判断是否存在注入(字符型or数字型)1' or 1=1# 2 猜测语句中字段数1' order by 11' order by 21' order by 3...2得到字段数或者1' union select 1#1' union select 1,2#1' union select 阅读全文
posted @ 2018-09-13 07:49 gudy 阅读(283) 评论(0) 推荐(0)
摘要: always的90 想不出来那10分是哪。有大佬知道的话辛苦告诉小弟一下,感激! 问题描述 试题编号: 201604-2 试题名称: 俄罗斯方块 时间限制: 1.0s 内存限制: 256.0MB 问题描述: 问题描述 俄罗斯方块是俄罗斯人阿列克谢·帕基特诺夫发明的一款休闲游戏。 游戏在一个15行10 阅读全文
posted @ 2018-09-03 11:17 gudy 阅读(217) 评论(0) 推荐(0)
摘要: 问题描述 试题编号: 201412-2 试题名称: Z字形扫描 时间限制: 2.0s 内存限制: 256.0MB 问题描述: 问题描述 在图像编码的算法中,需要将一个给定的方形矩阵进行Z字形扫描(Zigzag Scan)。给定一个n×n的矩阵,Z字形扫描的过程如下图所示: 对于下面的4×4的矩阵, 阅读全文
posted @ 2018-09-03 11:13 gudy 阅读(181) 评论(0) 推荐(0)
摘要: http://poj.org/problem?id=3069 Description Saruman the White must lead his army along a straight path from Isengard to Helm’s Deep. To keep track of h 阅读全文
posted @ 2018-05-01 14:53 gudy 阅读(105) 评论(0) 推荐(0)
摘要: https://vjudge.net/problem/POJ-3617 问题描述 给定长度为N的字符串S,要构造一个长度为N的字符串T,起初T是一个空串,随后反复进行下列任意操作: 1.从S头部删一个字符加到T尾部 2.从S尾部删一个字符加到T尾部 构造出字典序尽量小的T 思路: 贪心。 前面后面比 阅读全文
posted @ 2018-05-01 14:33 gudy 阅读(190) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 下一页