摘要:
【题目描述】 有一个沿海地区,可以看作有n行m列的城市,第i行第j列的城市海拔为h[j]。 由于沿海,所以这个地区经常会发生海啸。 海啸发生时,部分城市会被淹没,具体来说,海水高度会达到d,因此海拔低于d的城市都会被淹没。 现在有q次询问,每次问你一个矩... 阅读全文
posted @ 2022-09-20 22:55
老程序员111
阅读(102)
评论(0)
推荐(0)
摘要:
【题目描述】 小j开始打工,准备赚钱买煤气灶。 第一天,小j的工资为n元,之后每天他的工资都比前一天多d元。 已知煤气灶需要m元,求小j最少工作几天才能买到煤气灶。 【输入描述】 四个整数 n,m,d,x 分别表示小j第一天的工资,煤气灶的价格,工资... 阅读全文
posted @ 2022-09-20 22:55
老程序员111
阅读(17)
评论(0)
推荐(0)
摘要:
Problem Description There are N cities. There are also K roads and L railways, extending between the cities. The i-th road bidi... 阅读全文
posted @ 2022-09-20 22:55
老程序员111
阅读(40)
评论(0)
推荐(0)
摘要:
Problem Description You are given a string S consisting of lowercase English letters. Another string T is initially empty. Dete... 阅读全文
posted @ 2022-09-20 22:55
老程序员111
阅读(35)
评论(0)
推荐(0)
摘要:
Problem Description There is a string s of length 3 or greater. No two neighboring characters in s are equal. Takahashi and Ao... 阅读全文
posted @ 2022-09-20 22:55
老程序员111
阅读(27)
评论(0)
推荐(0)
摘要:
Problem Description There are N boxes arranged in a row. Initially, the i-th box from the left contains ai candies. Snuke can ... 阅读全文
posted @ 2022-09-20 22:55
老程序员111
阅读(55)
评论(0)
推荐(0)
摘要:
Problem Description There are N towns located in a line, conveniently numbered 1 through N. Takahashi the merchant is going on ... 阅读全文
posted @ 2022-09-20 22:55
老程序员111
阅读(40)
评论(0)
推荐(0)
摘要:
Problem Description Two foxes Jiro and Saburo are playing a game called 1D Reversi. This game is played on a board, using black... 阅读全文
posted @ 2022-09-20 22:55
老程序员111
阅读(54)
评论(0)
推荐(0)
摘要:
Problem Description AtCoDeer the deer is seeing a quick report of election results on TV. Two candidates are standing for the e... 阅读全文
posted @ 2022-09-20 22:55
老程序员111
阅读(40)
评论(0)
推荐(0)
摘要:
Problem Description AtCoDeer the deer and his friend TopCoDeer is playing a game. The game consists of N turns. In each turn, e... 阅读全文
posted @ 2022-09-20 22:55
老程序员111
阅读(15)
评论(0)
推荐(0)

浙公网安备 33010602011771号