最新 最热

PAT (Advanced Level) Practice 1144 The Missing Number (20分)

Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list.

2020-09-28
0

Codeforces Round #624 (Div. 3) A - Add Odd or Subtract Even

You are given two positive integers aa and bb.

2020-09-28
0

Java基础 【自动装箱和拆箱、面试题】

1. 自动装箱:把基本类型转换为包装类类型int a =10;Integer i = new Integer(a);

2020-09-28
1

Codeforces Round #633 (Div. 2)C Powered Addition (贪心,二进制)

You have an array aa of length nn. For every positive integer xx you are going to perform the following operation during the xx-th second:

2020-09-28
1

Codeforces Round #633 (Div. 2) A Filling Diamonds (假题,观察)

You have integer nn. Calculate how many ways are there to fully cover belt-like area of 4n−24n−2 triangles with diamond shapes.

2020-09-28
1

Educational Codeforces Round 81 (Rated for Div. 2) A. Display The Number

You have a large electronic screen which can display up to 998244353998244353 decimal digits. The digits are displayed in the same way as on different electroni...

2020-09-28
1

Codeforces Round #559 (Div. 2)B. Expansion coefficient of the array

Let's call an array of non-negative integers a1,a2,…,ana1,a2,…,an a kk-extension for some non-negative integer kk if for all possible pairs of indices 1≤i,j≤n1≤...

2020-09-28
0

2019.8.15乘兴打Codeforces Round #569 (Div. 2)小记A题A. Alex and a Rhombus

A. Alex and a Rhombus time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output While playing with geometric...

2020-09-28
1

Array - 16. 3Sum Closest

Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the three integer...

2020-09-23
0

Array - 59. Spiral Matrix II

Given a positive integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.

2020-09-23
1