摘要:
"来源poj1442" Our Black Box represents a primitive database. It can save an integer array and has a special i variable. At the initial moment Black Box 阅读全文
摘要:
"来源poj1059" Marsha and Bill own a collection of marbles. They want to split the collection among themselves so that both receive an equal share of the 阅读全文
摘要:
来源hdu1114 Problem Description Before ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for 阅读全文
摘要:
For a decimal number x with n digits (A nA n 1A n 2 ... A 2A 1), we define its weight as F(x) = A n 2 n 1 + A n 1 2 n 2 + ... + A 2 2 + A 1 1. Now you 阅读全文
摘要:
F(x,m) 代表一个全是由数字x组成的m位数字。请计算,以下式子是否成立: F(x,m) mod k ≡ c Input 第一行一个整数T,表示T组数据。 每组测试数据占一行,包含四个数字x,m,k,c 1≤x≤9 1≤m≤1010 0≤c include include include incl 阅读全文