最新 最热

ACMSGURU 102 - Coprimes

For given integer N (1<=N<=10^4) find amount of positive numbers not greater than N that coprime with N. Let us call two positive integers (say, A and B, for ex...

2021-08-11
1

LeetCode 0601 - Human Traffic of Stadium

X city built a new stadium, each day many people visit it and the stats are saved as these columns: id, visit_date, people

2021-08-11
1

LeetCode 0620 - Not Boring Movies

X city opened a new cinema, many people would like to go to this cinema. The cinema also gives out a poster indicating the movies’ ratings and descriptions.Ple...

2021-08-11
0

LeetCode 0626 - Exchange Seats

Mary is a teacher in a middle school and she has a table seat storing students’ names and their corresponding seat ids.

2021-08-11
1

LeetCode 0398 - Random Pick Index

Given an array of integers with possible duplicates, randomly output the index of a given target number. You can assume that the given target number must exist ...

2021-08-11
1

LeetCode 0399 - Evaluate Division

Given an array of integers with possible duplicates, randomly output the index of a given target number. You can assume that the given target number must exist ...

2021-08-11
1

LeetCode 1116 - Print Zero Even Odd

Suppose you are given the following code:

2021-08-11
1

LeetCode 1195 - Fizz Buzz Multithreaded

Write a program that outputs the string representation of numbers from 1 to n, however:

2021-08-11
1

ACMSGURU 106 - The equation

There is an equation ax + by + c = 0. Given a,b,c,x1,x2,y1,y2 you must determine, how many integer roots of this equation are satisfy to the following condition...

2021-08-11
1

ACMSGURU 107 - 987654321 problem

For given number N you must output amount of N-digit numbers, such, that last digits of their square is equal to 987654321.

2021-08-11
1