与‘数论-线性同余方程(组)’有关的日志

poj2891

maksyuki 发表于 oj 分类,标签:
0
poj2891

Strange Way to Express Integers

Elina is reading a book written by Rujia Liu, which introduces a strange way to express non-negative integers. The way is described as following:

Choose k different positive integers a1, a2, …, ak. For some non-neg >>继续阅读

poj2115

maksyuki 发表于 oj 分类,标签:
0
poj2115

C Looooops

A Compiler Mystery: We are given a C-language style for loop of type

for (variable = A; variable != B; variable += C)

statement; >>继续阅读

poj1061

maksyuki 发表于 oj 分类,标签:
0
poj1061

青蛙的约会

两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上,于是它们约定各自朝西跳,直到碰面为止。可是它们出发之前忘记了一件很重要的事情,既没有问清楚对方的特征, >>继续阅读

hdu3579

maksyuki 发表于 oj 分类,标签:
0
hdu3579

Hello Kiki

Problem Description

One day I was shopping in the supermarket. There was >>继续阅读

hdu1573

maksyuki 发表于 oj 分类,标签:
0
hdu1573

X问题

Problem Description

求在小于等于N的正整数中有多少个X满足:X mod a[0] = b[0], X mod a[1] = b[1], X mod a[2] = b[2], …, X mod a[i] = b[i], … (0 < a[i] <= 10)。

Input

输入数据的第一行为一个正整数T,表示有T组测试数据。每组测试 >>继续阅读

lightoj1319

maksyuki 发表于 oj 分类,标签:
0
lightoj1319

1319 - Monkey Tradition

1)       There are N monkeys who play this game and there are N bamboos of equal heights. Let the height be L meters.In 'MonkeyLand', there is a traditional game called "Bamboo Climbing". The rules of the game are as follows >>继续阅读