![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
水题
狠人王
怀着一颗热情的心,追随自己的梦想!
展开
-
水题
山东省第七届ACM大学生程序设计竞赛签到题#include<iostream>using namespace std;int main(){ int x,m,n,p,w; cin>>x; while(x--) { cin>>n>>m; w=n/m; if(w==0...原创 2019-04-21 15:08:27 · 143 阅读 · 0 评论 -
【codeforce】B. Sort the Array (翻转一次数串使得序列有序)
Being a programmer, you like arrays a lot. For your birthday, your friends have given you an arrayaconsisting ofndistinctintegers.Unfortunately, the size ofais too small. You want a bigger ar...原创 2019-08-27 15:17:41 · 228 阅读 · 0 评论 -
【codeforce】A. Nicholas and Permutation
Nicholas has an array a that contains n distinct integers from 1 to n. In other words, Nicholas has a permutation of size n.Nicholas want the minimum element (integer 1) and the maximum element (int...原创 2019-08-12 14:09:10 · 118 阅读 · 0 评论 -
【CodeForces】 - 259B (幻方规律)(水)
Little Elephant loves magic squares very much.Amagic squareis a3 × 3table, each cell contains some positive integer. At that the sums of integers in all rows, columns and diagonals of the table ...原创 2019-08-20 08:47:59 · 185 阅读 · 0 评论 -
【codeforce】A. Phone Numbers(water)
Let’s call a string a phone number if it has length 11 and fits the pattern “8xxxxxxxxxx”, where each “x” is replaced by a digit.For example, “80123456789” and “80000000000” are phone numbers, while ...原创 2019-08-10 17:32:57 · 231 阅读 · 0 评论 -
【codeforce】A. Tokitsukaze and Enhancement(水题)(规律)
Tokitsukaze is one of the characters in the game “Kantai Collection”. In this game, every character has a common attribute — health points, shortened to HP. In general, different values of HP are grou...原创 2019-08-10 09:31:53 · 161 阅读 · 0 评论 -
CodeForces - 236B(水,因子)
Let’s denote d(n) as the number of divisors of a positive integer n. You are given three integers a, b and c. Your task is to calculate the following sum:Find the sum modulo 1073741824 (230).InputT...原创 2019-08-01 21:19:10 · 223 阅读 · 0 评论 -
Light OJ1006 Hex-a-bonacci(递归转递推)(简单dp)
Given a code (not optimized), and necessary inputs, you have to find the output of the code for the inputs. The code is as follows:int a, b, c, d, e, f;int fn( int n ) { if( n == 0 ) return a; ...原创 2019-08-01 16:00:45 · 140 阅读 · 0 评论 -
LightOJ Circle in Square (简单计算几何)
A circle is placed perfectly into a square. The term perfectly placed means that each side of the square is touched by the circle, but the circle doesn’t have any overlapping part with the square. See...原创 2019-08-01 15:52:35 · 277 阅读 · 0 评论 -
【codeforce】B. Water Lily
While sailing on a boat, Inessa noticed a beautiful water lily flower above the lake’s surface. She came closer and it turned out that the lily was exactly H centimeters above the water surface. Iness...原创 2019-07-31 09:34:59 · 235 阅读 · 0 评论 -
A. Free Cash(预处理)(水题)
Valera runs a 24/7 fast food cafe. He magically learned that next day n people will visit his cafe. For each person we know the arrival time: the i-th person comes exactly at hi hours mi minutes. The ...原创 2019-08-02 16:25:50 · 204 阅读 · 0 评论 -
【codeforce】A. Chips Moving(规律)(~水)
You are givennnchips on a number line. Theii-th chip is placed at the integer coordinatexixi. Some chipscan have equal coordinates.You can perform each of the two following types of moves any (...原创 2019-09-04 08:38:00 · 321 阅读 · 0 评论