搜索内容

OBCYSIO
  • Orange Boy Can You Solve It Out? Ep. 40
    OBCYSIO

    Orange Boy Can You Solve It Out? Ep. 40

    Simple 思考题 Ninja Try to find any of three integers X,Y,Z in a given integer array A of length N so that X+Y=Z. Example Input: A={1,2,3} Output: X=1,Y=2,Z=3 Input: A={0} Output: X=0,Y=0,Z=0 Input: A={1,9,2,6,0,8,1,7} Output: X=1,Y=8,Z=9 Input: A=……
    XGN 2020年4月15日
  • Orange Boy Can You Solve It Out? Ep. 39
    OBCYSIO

    Orange Boy Can You Solve It Out? Ep. 39

    思考题 greedy? SMM Have you ever played Super Mario Maker (2)? There's an interesting mode called Endless Challenge. Let's look at a simplified version: The game contains N levels. The player plays from level 1 to level N in order. In Level i, ther……
    XGN 2020年3月22日
  • Orange Boy Can You Solve It Out? Ep. 38
    OBCYSIO

    Orange Boy Can You Solve It Out? Ep. 38

    思考题 long ago Chess Ninetail and Doragon are playing Global Chess on a chessboard with N*M grids. The left-upper corner is (1,1) and the right-lower corner is (N,M) The Global Chess goes as follows: Each player has some soldiers. Ninetail plays ……
    XGN 2020年3月15日
  • Orange Boy Can You Solve It Out? Ep. 37
    OBCYSIO

    Orange Boy Can You Solve It Out? Ep. 37

    思考题 with song 75 There have been 73 heroes failing to rescue the princess, and the 74-th was killed by the princess. As the 75-th knight, you decided to become stronger so that you would survive the princess's attack. You are given a directed g……
    XGN 2020年2月26日
  • Orange Boy Can You Solve It Out? Ep. 36
    OBCYSIO

    Orange Boy Can You Solve It Out? Ep. 36

    思考题 with anime Unlimited Fafnir After watching the famous anime Unlimited Fafnir, XGN got excited. So he decided to recreate the scene of fighting the Basilisk. This time, Yuu is going to do it himself. Let's suppose the world is a 2D plane. The……
    XGN 2020年2月10日
  • Orange Boy Can You Solve it Out? Ep. 28.5
    OBCYSIO

    Orange Boy Can You Solve it Out? Ep. 28.5

    思考题so late? Dazzit Again This is an easy version of OBCYSIO 28) You are given an integer sequence A of length N and another sequence B of length M. Then imagine a game: First, you choose exactly M different elements and arrange them, let's call ……
    XGN 2020年2月6日
  • Orange Boy Can You Solve It Out? Ep. 35
    OBCYSIO

    Orange Boy Can You Solve It Out? Ep. 35

    思考题 for 2020 DuiLian 二十年飞花不尽 一几度落月无穷 九州同乐 Of twenty years, the flower never withers In one eternity, the moon forever remains Enjoy it together It's 2020 soon. It's time for the biggest holiday - The Yuandan and the Chinese Ne……
    XGN 2019年12月31日
  • Orange Boy Can You Solve It Out? Ep. 34
    OBCYSIO

    Orange Boy Can You Solve It Out? Ep. 34

    思考题 about cheating Lottery Cheating Let's have some lottery! In this lottery system, a number string S and an array of integers A is predetermined. It is known that |A|=|S| and let's define A_0=0. Each user chooses a number string T(|T|=|S|). Th……
    XGN 2019年12月10日
  • Orange Boy Can You Solve It Out? Ep. 33
    OBCYSIO

    Orange Boy Can You Solve It Out? Ep. 33

    思考题 Times A shadow pokemon! Recently the famous game Pokemon SwordString was released. XGN, one of the biggest fan of Pokemon, decided to have a try. In each battle, your Pokemon can be seen as a string A and the enemy can be seen as a string B.……
    XGN 2019年12月9日
  • Orange Boy Can You Solve It Out? Ep. 32
    OBCYSIO

    Orange Boy Can You Solve It Out? Ep. 32

    思考题 in one sentence Yet Another Easy Problem Find any positive integer pair a,b so that (a+b)+(a+b)\mod k=n where k,n are given or -1 -1 if not found. Examples Input K=100 N=268 Output 200 34 Explain 200+34+(200+34)mod 100=234+34=268 Input K=100……
    XGN 2019年12月4日