最新 最热

LeetCode 0290 - Word Pattern

Given a pattern and a string str, find if str follows the same pattern.

2021-08-11
0

LeetCode 0282 - Expression Add Operators

Given a string that contains only digits 0-9 and a target value, return all possibilities to add binary operators (not unary) +, -, or * between the digits so t...

2021-08-11
0

ACMSGURU 154 - Factorial

You task is to find minimal natural number N, so that N! contains exactly Q zeroes on the trail in decimal notation. As you know N! = 12…*N. For example, 5! = 1...

2021-08-11
1

ACMSGURU 100 - A+B

Read integers A and B from input file and write their sum in output file.

2021-08-11
0

ACMSGURU 105 - Div 3

There is sequence 1, 12, 123, 1234, …, 12345678910, … . Given first N elements of that sequence. You must determine amount of numbers in it that are divisible b...

2021-08-11
0

ACMSGURU 112 - a^b-b^a

You are given natural numbers a and b. Find a^b-b^a.

2021-08-11
0

ACMSGURU 275 - To xor or not to xor

The sequence of non-negative integers A1, A2, …, AN is given. You are to find some subsequence Ai1, Ai2, …, Aik (1 <= i1 < i2 < … < ik <= N) such, that Ai1 XOR ...

2021-08-11
1

ACMSGURU 222 - Little Rooks

Inspired by a “Little Bishops” problem, Petya now wants to solve problem for rooks.

2021-08-11
0

LeetCode 0060 - Permutation Sequence

The set [1,2,3,…,n] contains a total of n! unique permutations.

2021-08-11
0

LeetCode 0051 - N-Queens

The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.

2021-08-11
1