Given two positive integers a and b, we can easily calculate the greatest common divisor (GCD) and the least common multiple (LCM) of a and b. But wha ...
分类:
其他好文 时间:
2019-02-09 12:00:20
阅读次数:
204
I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B. Input The first line of the input contain ...
分类:
其他好文 时间:
2019-02-08 15:55:28
阅读次数:
152
There must be many A + B problems in our HDOJ , now a new one is coming. Give you two hexadecimal integers , your task is to calculate the sum of them ...
分类:
其他好文 时间:
2019-02-08 10:30:33
阅读次数:
208
Given two rectangles and the coordinates of two points on the diagonals of each rectangle,you have to calculate the area of the intersected part of tw ...
分类:
其他好文 时间:
2019-02-08 01:09:14
阅读次数:
161
Give you two numbers A and B, if A is equal to B, you should print "YES", or print "NO". Input each test case contains two numbers A and B. Output for ...
分类:
其他好文 时间:
2019-02-08 01:02:08
阅读次数:
216
Two images A and B are given, represented as binary, square matrices of the same size. (A binary matrix has only 0s and 1s as values.) We translate on ...
分类:
其他好文 时间:
2019-02-07 23:23:10
阅读次数:
214
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: The number of elements initialized in nums1 and num ...
分类:
其他好文 时间:
2019-02-07 09:35:27
阅读次数:
142
There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity sh ...
分类:
其他好文 时间:
2019-02-06 13:16:54
阅读次数:
171
https://leetcode.com/problems/find-k-pairs-with-smallest-sums/ You are given two integer arrays nums1 and nums2 sorted in ascending order and an integ ...
分类:
其他好文 时间:
2019-02-06 11:52:53
阅读次数:
118
题干: Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string. Example 1 ...
分类:
其他好文 时间:
2019-02-06 09:12:42
阅读次数:
182