2019年5月5日

THE FOOL

摘要: Fool is numbered 0 the number of unlimited potential -and therefore does not have a specific place in the... 阅读全文

posted @ 2019-05-05 17:22 湫叶 阅读(221) 评论(0) 推荐(0) 编辑

Little Sub and Enigma

摘要: Little Sub builds a naive Enigma machine of his own. It can only be used to encrypt/decrypt lower-case let... 阅读全文

posted @ 2019-05-05 17:09 湫叶 阅读(90) 评论(0) 推荐(0) 编辑

2019年5月3日

Greatest Common Divisor

摘要: 题目描述There is an array of length n, containing only positive numbers.Now you can add all numbers by 1 many ... 阅读全文

posted @ 2019-05-03 17:16 湫叶 阅读(95) 评论(0) 推荐(0) 编辑

2019年5月1日

Largest Allowed Area

摘要: A company is looking for land to build its headquarters. It has a lot of money and can buy as many land pa... 阅读全文

posted @ 2019-05-01 21:40 湫叶 阅读(126) 评论(0) 推荐(0) 编辑

Evolution Game

摘要: In the fantasy world of ICPC there are magical beasts. As they grow, these beasts can change form, and eve... 阅读全文

posted @ 2019-05-01 20:59 湫叶 阅读(93) 评论(0) 推荐(0) 编辑

Clockwork

摘要: Rabbits are small mammals in the family Lep or idae of the or der Lagom or pha. So says Wikipedia.C or rec... 阅读全文

posted @ 2019-05-01 20:51 湫叶 阅读(129) 评论(0) 推荐(0) 编辑

2019年4月16日

JAVA快速输入输出

摘要: import java.math.BigInteger;import java.util.Arrays;import java.util.Scanner;import java.io.BufferedReader... 阅读全文

posted @ 2019-04-16 08:20 湫叶 阅读(148) 评论(0) 推荐(0) 编辑

2019年4月15日

点在三角行

摘要: 参考博客算法1利用面积法,如上图所示,如果点P在三角形ABC的内部,则三个小三角形PAB, PBC, PAC的面积之和 = ABC的面积,反之则不相等。已知三角形的三个顶点坐标求其面积,可以根据向量的叉乘,参考。... 阅读全文

posted @ 2019-04-15 13:07 湫叶 阅读(115) 评论(0) 推荐(0) 编辑

点是否在线段上

摘要: 两个条件1.两个向量叉积为0;2.点在线段端点矩形区域内;#include #include using namespace std;struct point{ double x; double y... 阅读全文

posted @ 2019-04-15 12:13 湫叶 阅读(164) 评论(0) 推荐(0) 编辑

Even Number Theory

摘要: 题目链接 ps:Java水题。比赛的时候以为直接暴力。但其实TLE.然后打了一个表。然而,只找到一点规律。最后,找到了。其实就是把数转化为二进制。然后,遍历二进制中1.位数为n;ans+=2^n-1;然后ans用... 阅读全文

posted @ 2019-04-15 11:45 湫叶 阅读(85) 评论(0) 推荐(0) 编辑

导航