
LightOJ
无
旺 崽
这个作者很懒,什么都没留下…
展开
-
LightOJ 1079 Just another Robbery
LightOJ 1079 Just another Robbery题目链接As Harry Potter series is over, Harry has no job. Since he wants to make quick money, (he wants everything quick!) so he decided to rob banks. He wants to make a calculated risk, and grab as much money as possible. Bu原创 2020-07-11 16:25:22 · 2356 阅读 · 0 评论 -
LightOJ 1038 Race to 1 Again
LightOJ 1038 Race to 1 Again题目链接Rimi learned a new thing about integers, which is - any positive integer greater than 1 can be divided by its divisors. So, he is now playing with this property. He selects a number N. And he calls this D.In each turn h原创 2020-07-10 15:09:18 · 2307 阅读 · 0 评论 -
LightOJ 1030 Discovering Gold
LightOJ 1030 Discovering GoldYou are in a cave, a long cave! The cave can be represented by a 1 x N grid. Each cell of the cave can contain any amount of gold.Initially you are in position 1. Now each turn you throw a perfect 6 sided dice. If you get X i原创 2020-07-09 15:31:48 · 2339 阅读 · 0 评论 -
LightOJ 1138 Trailing Zeroes (III)
LightOJ 1138 Trailing Zeroes (III)题目链接You task is to find minimal natural number N, so that N! contains exactly Q zeroes on the trail in decimal notation. As you know N! = 12…*N. For example, 5! = 120, 120 contains one zero on the trail.InputInput star原创 2020-07-09 11:25:48 · 2355 阅读 · 0 评论 -
LightOJ 10271027 A Dangerous Maze
LightOJ 10271027 A Dangerous Maze题目链接You are in a maze; seeing n doors in front of you in beginning. You can choose any door you like. The probability for choosing a door is equal for all doors.If you choose the ith door, it can either take you back to原创 2020-07-08 20:51:44 · 2348 阅读 · 0 评论 -
LightOJ 1197 Help Hanzo
LightOJ 1197 Help HanzoAmakusa, the evil spiritual leader has captured the beautiful princess Nakururu. The reason behind this is he had a little problem with Hanzo Hattori, the best ninja and the love of Nakururu. After hearing the news Hanzo got extreme原创 2020-07-08 20:08:46 · 2343 阅读 · 0 评论 -
LightOJ 1213 Fantasy of a Summation
LightOJ 1213 Fantasy of a SummationIf you think codes, eat codes then sometimes you may get stressed. In your dreams you may see huge codes, as I have seen once. Here is the code I saw in my dream.#include <stdio.h>int cases, caseno;int n, K, MO原创 2020-07-05 10:38:58 · 2372 阅读 · 0 评论 -
LightOJ 1214 K - Large Division
LightOJ 1214 K - Large DivisionGiven two integers, a and b, you should check whether a is divisible by b or not. We know that an integer a is divisible by an integer b if and only if there exists an integer c such that a = b * c.InputInput starts with a原创 2020-07-04 20:38:37 · 2346 阅读 · 0 评论 -
LightOJ 1220 Mysterious Bacteria
LightOJ 1220 Mysterious BacteriaDr. Mob has just discovered a Deathly Bacteria. He named it RC-01. RC-01 has a very strange reproduction system. RC-01 lives exactly x days. Now RC-01 produces exactly p new deadly Bacteria where x=bpx = b^px=bp (where b, p原创 2020-07-02 19:36:16 · 2426 阅读 · 0 评论 -
LightOJ 1234 Harmonic Number
LightOJ 1234 Harmonic NumberIn mathematics, the nth harmonic number is the sum of the reciprocals of the first n natural numbers:In this problem, you are given n, you have to find Hn.InputInput starts with an integer T (≤ 10000), denoting the number原创 2020-06-17 10:44:16 · 2359 阅读 · 0 评论 -
LightOJ 1236 Pairs Forming LCM
LightOJ 1236 Pairs Forming LCMFind the result of the following code:long long pairsFormLCM( int n ) {long long res = 0;for( int i = 1; i <= n; i++ )for( int j = i; j <= n; j++ )if( lcm(i, j) == n ) res++; // lcm means least common multipleretu原创 2020-05-26 09:50:27 · 2348 阅读 · 0 评论 -
LightOJ 1245 Harmonic Number (II)
LightOJ 1245 Harmonic Number (II)I was trying to solve problem ‘1234 - Harmonic Number’, I wrote the following codelong long H( int n ) {long long res = 0;for( int i = 1; i <= n; i++ )res = re...原创 2020-04-26 16:50:58 · 2277 阅读 · 0 评论 -
LightOJ 1259 Goldbach`s Conjecture
LightOJ 1259 Goldbach`s ConjectureGoldbach’s conjecture is one of the oldest unsolved problems in number theory and in all of mathematics. It states:Every even integer, greater than 2, can be expres...原创 2020-04-24 15:16:31 · 2378 阅读 · 0 评论 -
LightOJ 1282 Leading and Trailing
LightOJ 1282 Leading and Trailing题目链接You are given two integers: n and k, your task is to find the most significant three digits, and least significant three digits of nkn^knk.InputInput starts wi...原创 2020-04-24 11:51:34 · 2214 阅读 · 0 评论 -
LightOJ 1336 Sigma Function
LightOJ 1336 Sigma FunctionSigma function is an interesting function in Number Theory. It is denoted by the Greek letter Sigma (σ). This function actually denotes the sum of all divisors of a number....原创 2020-04-06 10:47:45 · 2233 阅读 · 0 评论 -
LightOJ 1341 Aladdin and the Flying Carpet
LightOJ 1341 Aladdin and the Flying CarpetIt’s said that Aladdin had to solve seven mysteries before getting the Magical Lamp which summons a powerful Genie. Here we are concerned about the first mys...原创 2020-04-06 09:59:54 · 2193 阅读 · 0 评论 -
LightOJ 1370 Bi-shoe and Phi-shoe
LightOJ 1370 Bi-shoe and Phi-shoeBamboo Pole-vault is a massively popular sport in Xzhiland. And Master Phi-shoe is a very popular coach for his success. He needs some bamboos for his students, so he...原创 2020-03-12 10:37:02 · 2246 阅读 · 0 评论