美文网首页
POJ_3468 A Simple Problem with I

POJ_3468 A Simple Problem with I

作者: Zhu8655 | 来源:发表于2015-05-16 22:10 被阅读12次

1.题目相关

  • 标签线段树
  • 题目地址http://poj.org/problem?id=3468
  • 题目大意:给定N个数和Q个询问。询问有两种格式:C a b c 表示把[a,b]区间上的每一个数都加c。Q a b 表示求出[a,b]的元素之和。

2.思路

  • 线段树裸题,详情请看代码。

Lazy版
标记永久化版

相关文章

  • POJ_3468 A Simple Problem with I

    1.题目相关 标签:线段树 题目地址:http://poj.org/problem?id=3468 题目大意:给定...

  • HDU 1002 : A + B Problem II

    Problem Description I have a very simple problem for you....

  • I - A Simple Math Problem

    这是个数论题,题目给出两个正整数a,b;让我们寻找两个正整数X,Y,其满足X+Y=a,LCM(X,Y)=b;这个题...

  • 1078 Hashing(hash散列)

    1078 Hashing (25 分) The task of this problem is simple: i...

  • 线段树基本题

    目录1.I Hate It2.A Simple Problem with Integers3.敌兵布阵4.Fast...

  • 无标题文章

    I - A Simple Math Problem(解题报告) HDU - 5974 第一次写,一道比较简单...

  • A Simple Math Problem

    Given two positive integers a and b,find suitable X and Y...

  • adjusting

    To the mice,the problem and the answer were both simple.T...

  • HDU 5974

    A Simple Math Problem Given two positive integers a and b...

  • HDU 5974

    A Simple Math Problem Given two positive integers a and b...

网友评论

      本文标题:POJ_3468 A Simple Problem with I

      本文链接:https://www.haomeiwen.com/subject/rmekqttx.html