WEBSITE RETURNED, HOWEVER SUBMIT QUANTITY IS RESTRICTED PER DAY TO VERY LITTLE (UNDER JUDGE0 NEW POLICY, API PROVIDER). Therefore it is very much for you to pay attention TEST CAREFULLY CODE BEFORE SUBMIT.
Threads: Lee has an infinite number of candy bags in turn 6, 9 and 20 the candy. Have 1 the customer wants to buy n candies, Lee wants to sell as many bags of candy as possible. Help Lee figure out the maximum number of candy bags sold, know that she won't be sold
Threads: The palindromic number is a number that is the same when written forward or backwards. Therefore, The first few palindromic numbers are 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 22, 33, 44, 55, 66, 77, 88, 99, 101, 111, 121, … (Rule 1). In some cases
Threads:Counts the number of primes less than or equal to n. Input: A unique number n. n <= 5*10^9. Output: Number of primes less than or equal to n. For example: input: 3 output: 2
Threads:Given a number n, sum the divisors of the number n(n . not included)! Input: A unique number n. N <= 10^18. Output: Sum of the divisors of n. Suggestions: check prime number first. For example: input: 3 output: 1
Threads: Tìm số nguyên tố tại vị trí i Đầu vào: T số lượng test, T testcase tương ứng. Output: Số nguyên tố tại các vị trí testcase. Suggestions: dựa vào sàng nguyên tố để hoàn thành bài tập Ví dụ: input: 3 2 3 5 output: 3 5 7
Threads:Given a number n, kiểm tra số đó có phải số nguyên tố hay không! Input: A unique number n. n <= 10^18 Đầu ra: Yes nếu đó là số nguyên tố, No nếu ngược lại. For example: input: 3 output: Yes
Threads: Cho một số nguyên dương x. Tìm cặp số nguyên dương (a, b) thoả mãn: UCLN(a, b) + BCNN(a, b) = x. Trong đó: UCLN(a, b) là ước chung lớn nhất của 2 số a và b. BCNN(a, b) là bội chung nhỏ nhất của 2 số a và b. Input: Current
Threads: “Ném chó chó chết” là câu nói thường dùng để chỉ những chiếc điện thoại “cục gạch” ngày xưa. Hôm nay, chúng ta sẽ có một bài tập nhỏ về những chiếc điện thoại huyền thoại này. Cho n là một chuỗi toàn số (chỉ gồm các kí tự 0,1,2,3,4,5,6,7,8,9). Dựa vào hình