摘要:
题目描述 Given an integer N, find how many pairs (A, B) are there such that: gcd(A, B) = A xor B where 1 ≤ B ≤ A ≤ N. Here gcd(A, B) means the greatest co 阅读全文
摘要:
题目来源:https://hihocoder.com/problemset/problem/1509 描述: 给定一个长度为 n 的非负整数序列 a[1..n] 你需要求有多少个非负整数 S 满足以下两个条件: (1).0 ≤ S (2).对于所有 1 ≤ i 输入 第一行一个正整数 n 第二行 n 阅读全文