
light oj
gtuif
大多数人永远都不会了解真实的你,但是他们会看到你所做的一切。。。
展开
-
G - Josephus Problem LightOJ - 1179
The historian Flavius Josephus relates how, in the Romano-Jewish conflict of 67 A.D., the Romans took the town of Jotapata which he was commanding. Escaping, Josephus found himself trapped in a cave w原创 2017-07-30 11:33:06 · 606 阅读 · 0 评论 -
D - Integer Divisibility LightOJ - 1078
If an integer is not divisible by 2 or 5, some multiple of that number in decimal notation is a sequence of only a digit. Now you are given the number and the only allowable digit, you should report t原创 2017-07-29 11:35:59 · 272 阅读 · 0 评论 -
K - Largest Box LightOJ - 1297
In the following figure you can see a rectangular card. The width of the card is W and length of the card is L and thickness is zero. Four (x*x) squares are cut from the four corners of the card sho原创 2017-08-23 08:40:26 · 320 阅读 · 0 评论 -
F - Mad Counting LightOJ - 1148
Mob was hijacked by the mayor of the Town "TruthTown". Mayor wants Mob to count the total population of the town. Now the naive approach to this problem will be counting people one by one. But as we a原创 2017-07-29 11:54:09 · 316 阅读 · 0 评论 -
E - Ekka Dokka LightOJ - 1116
Ekka and his friend Dokka decided to buy a cake. They both love cakes and that's why they want to share the cake after buying it. As the name suggested that Ekka is very fond of odd numbers and Dokka原创 2017-07-29 11:41:08 · 270 阅读 · 0 评论 -
C - A Childhood Game LightOJ - 1020
Alice and Bob are playing a game with marbles; you may have played this game in childhood. The game is playing by alternating turns. In each turn a player can take exactly one or two marbles.Both Al原创 2017-07-29 11:29:23 · 313 阅读 · 0 评论 -
A - Fibsieve`s Fantabulous Birthday LightOJ - 1008
Fibsieve had a fantabulous (yes, it's an actual word) birthday party this year. He had so many gifts that he was actually thinking of not having a party next year.Among these gifts there was an N x原创 2017-07-29 11:21:10 · 319 阅读 · 0 评论 -
LIGHT OJ 1010 Knights in Chessboard
Given an m x n chessboard where you want to place chess knights. You have to find the number of maximum knights that can be placed in the chessboard such that no two knights attack each other.Those原创 2017-05-13 09:43:43 · 209 阅读 · 0 评论 -
O - IP Checking LightOJ - 1354
An IP address is a 32 bit address formatted in the following way a.b.c.d where a, b, c, d are integers each ranging from 0 to 255. Now you are given two IP addresses, first one in decima原创 2017-08-03 22:43:39 · 274 阅读 · 0 评论 -
N - Aladdin and the Optimal Invitation LightOJ - 1349
Finally Aladdin reached home, with the great magical lamp. He was happier than ever. As he was a nice boy, he wanted to share the happiness with all people in the town. So, he wanted to invite all peo原创 2017-08-03 22:36:15 · 392 阅读 · 0 评论 -
M - Billiard Balls LightOJ - 1323
You are given a rectangular billiard board, L and W be the length and width of the board respectively. Unlike other billiard boards it doesn't have any pockets. So, the balls move freely in the boar原创 2017-08-02 23:29:57 · 445 阅读 · 0 评论 -
P - Answering Queries LightOJ - 1369
The problem you need to solve here is pretty simple. You are give a function f(A, n), where A is an array of integers andn is the number of elements in the array. f(A, n) is defined as follows:lon原创 2017-08-07 21:38:17 · 263 阅读 · 0 评论 -
Light OJ 1234 Harmonic Number
1234 - Harmonic Number PDF (E...原创 2018-04-13 19:50:49 · 187 阅读 · 0 评论