首页 > TAG信息列表 > Troops

POJ - 3069 Saruman‘s Army

Saruman’s Army POJ - 3069 AYIT-2021 609暑假集训第一周上 搜索和贪心 Description Saruman the White must lead his army along a straight path from Isengard to Helm’s Deep. To keep track of his forces, Saruman distributes seeing stones, known as palantirs,

小白入门C语言之数组篇

一、数组 数组(array)是一组数据类型相同的变量,可以存放一组数据,它定义的语法是: 数据类型 数组名[数组长度]; 例如:double money[20];money是一个数组,包含了20个元素,每个元素都一个double类型的变量,可以通过下标访问数组中元素(element),数组下标的编号从0开始,数组的第1个元素是mo

I - Defeat the Enemy(线段树好题)

题目链接 Long long ago there is a strong tribe living on the earth. They always have wars and eonquer others. One day, there is another tribe become their target. The strong tribe has decide to terminate them!!! There are m villages in the other tribe. Each v

2019牛客暑期多校训练营(第十场)Han Xin and His Troops——扩展中国剩余定理

题意 求解 $n$ 个模方程 $x \equiv a (mod \ b)$,不保证模数互素($1 \leq n \leq 100$,$0 \leq b < a< 10^5$). 分析 套扩展中国剩余定理的模板, 然而__int128都会爆(好像也可以改成不会爆的), 不管,直接扔给队友改成Python版。 def gcd(a,b): if b==0: return a else :

poj 3069 Saruman's Army 贪心模拟

Saruman's Army Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 18794   Accepted: 9222 Description Saruman the White must lead his army along a straight path from Isengard to Helm’s Deep. To keep track of his forces, Saruman di