摘要:
2016 Problem Description: 给出正整数 n 和 m,统计满足以下条件的正整数对 (a,b) 的数量: 1. 1≤a≤n,1≤b≤m; 2. a×b 是 2016 的倍数。 Input: 输入包含不超过 30 组数据。 每组数据包含两个整数 n,m (1≤n,m≤109). O 阅读全文
摘要:
Parenthesis Problem Description: Bobo has a balanced parenthesis sequence P=p1 p2…pn of length n and q questions. The i th question is whether P remai 阅读全文