搜索内容

题&解
  • NFLS 2019-9-19 Programming Training
    题&解

    NFLS 2019-9-19 Programming Training

    搬运NFLS训练 NFLS Programming Training 2019-9-19 For international readers, please scroll down. A - 求和(sum.cpp) Statement 求 f(n)=a^{n+k} 的第q项到p项的和。 Input n k q p Output 一个整数,取模10^9+7 Example In: 2 0 2 3 Out: 12 Constriants For 100……
    XGN 2019年9月20日
  • Orange Boy Can You Solve It Out? Ep.22
    OBCYSIO

    Orange Boy Can You Solve It Out? Ep.22

    思考题 in poems Uncomment In a, programmers' day, Comment, all the lines I may. N lines, there should be. Commented A_i as I've been. Select a region, Toggle its comment. Cost of all, is (R-L+1)*A+B for all. Or add a comment, just in one line. Move……
    XGN 2019年9月15日
  • Green Boy Can't You Solve It Out?
    OBCYSIO

    Green Boy Can't You Solve It Out?

    2 problems for div3 participants Bomb Defusing II Statement Find how many years in range [l,r] that it has Sept.1 as a weekend(Sunday and Saturday)? Example l=2017,r=2019 out=2 2018/9/1 is Saturday while 2019/9/1 is Sunday Constriants (Div2A-Div2B)……
    XGN 2019年8月31日
  • Orange Boy Can You Solve It Out? Ep. 21.8
    OBCYSIO

    Orange Boy Can You Solve It Out? Ep. 21.8

    思考题 within 5 min Bomb defusing 「Readers, please set up a 5-minute timer before you continue to read」 Green boy envied Orange Boy for having such a high rating. So he decided to send Orange Boy a present: a bomb! The bomb will explode in 5 minu……
    XGN 2019年8月28日
  • Orange Boy Can You Solve It Out? Ep.21.5
    OBCYSIO

    Orange Boy Can You Solve It Out? Ep.21.5

    APPROXIMATE PROBLEM WARNING Metro There are N metro stations in a city. The distance between each two station is a fixed integer x. Your task is to construct some metro lines across the stations. We define a cost from station A to station B as the ……
    XGN 2019年8月25日
  • Orange Boy Can You Solve It Out? Ep.21
    OBCYSIO

    Orange Boy Can You Solve It Out? Ep.21

    思考题 for bread Bread Story You have a piece of bread which can be seen as a N*M grid. You also have a bottle of jam. You want to put some jam on the bread to make the bread delicious. You can do the following two operations: Put 1 unit of jam on……
    XGN 2019年8月24日
  • Orange Boy Can You Solve It Out? Ep.20.5
    OBCYSIO

    Orange Boy Can You Solve It Out? Ep.20.5

    APPROXIMATE PROBLEM WARNING Graph There is a grid of size N*M. Each grid could be "#" or ".". You need to find the shortest path from (1,1) to (N,M) by walking on "." only. But you are NOT given the graph. You can only see the grids near you. That ……
    XGN 2019年8月20日
  • Orange Boy Can You Solve It Out? Ep.20
    OBCYSIO

    Orange Boy Can You Solve It Out? Ep.20

    「考える問題は簡単ですか」 Programming Detect You are given a directed graph G with N nodes and M edges. Each node has an operation, which could be "def sth" or "use sth". An array of nodes A is called Exceptional iff: - for each 1\leq i\leq |A|-1 ……
    XGN 2019年8月20日
  • Orange Boy Can You Solve It Out? Ep.19.5
    OBCYSIO

    Orange Boy Can You Solve It Out? Ep.19.5

    野兽成分更多的思考题 广西省人大音乐II 不支持audio!! Electric Heritage Haniyasushin Keiki loves crafting. She has n kinds of items. The i-th kind of item has name name_i. She also has m recipes. The i-th recipe needs len_i of different kinds of di……
    XGN 2019年8月17日
  • Orange Boy Can You Solve It Out? Ep.19
    OBCYSIO

    Orange Boy Can You Solve It Out? Ep.19

    比以往更加黑暗的思考题 广西省人大音乐 不支持audio!! Idolatrize World Haniyasushin Keiki loves crafting. She has n kinds of items. The i-th kind of item has name name_i. She also has m recipes. The i-th recipe needs len_i of different kinds of dif……
    XGN 2019年8月16日