数论——整式方程
Alex_McAvoy
想要成为渔夫的猎手
展开
-
数论 —— 整式方程
【概念】整式方程就是方程中所有的未知数均在分子上,分母只是常数且无未知数。通常情况下,常年用字母 x、y、z 来表示未知数,方程中含有几个不同的未知数就叫做几元,未知数的最高次数是几就叫做几次。例如:ax+b=c 就是一个一元一次整式方程【一元一次方程求解】对于方程 ax+b=c,有:x=(c-b)/adouble calculate(double a,double b,...原创 2019-01-19 15:31:18 · 2406 阅读 · 0 评论 -
Lucky Number(HDU-4937)
Problem Description“Ladies and Gentlemen, It’s show time! ”“A thief is a creative artist who takes his prey in style... But a detective is nothing more than a critic, who follows our footsteps.....原创 2019-01-19 15:02:16 · 267 阅读 · 0 评论 -
出题
【题目描述】小B准备出模拟赛。她把题目按难度分为四等,分值分别为6,7,8,9。已知小B共出了m道题,共n分。求小B最少出了多少道6分题。 【输入描述】两个正整数n,m【输出描述】一个数,表示答案。若无解,输出"jgzjgzjgz"。【样例】示例1输入34 5输出1示例2输入32 5输出3示例3输入5 1输出jgzj...原创 2019-06-13 22:42:15 · 241 阅读 · 0 评论 -
Internet Service Providers(LightOJ-1275)
Problem DescriptionA group of N Internet Service Provider companies (ISPs) use a private communication channel that has a maximum capacity of C traffic units per second. Each company transfers T tr...原创 2019-02-13 23:28:31 · 361 阅读 · 0 评论 -
Jzzhu and Chocolate(CF-449A)
Problem DescriptionJzzhu has a big rectangular chocolate bar that consists of n × m unit squares. He wants to cut this bar exactly k times. Each cut must meet the following requirements:each cut ...原创 2019-03-28 15:23:39 · 269 阅读 · 0 评论