# 我是菜鸟，我怕谁

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 10445    Accepted Submission(s): 6041

Problem Description

lin2144是一只小菜鸟，都是笨鸟先飞，lin2144想来个菜鸟先飞，他从0点出发 一开始的飞行速度为1m/s，每过一个单位时间lin2144的飞行速度比上一个单位时间的飞行速度快2m/s，问n (0 < n < 10^5)个单位时间之后lin2144飞了多远?

Input

Output

Sample Input

2 1 2

Sample Output

1 4

Source

HDU 2008-10 Programming Contest

``` 1 #include <bits/stdc++.h>
2 using namespace std;
3 int main()
4 {
5     int n,t;
6     int v0=1,v;
7     int s;
8     while(cin>>n)
9     {
10         while(n--)
11         {
12         cin>>t;
13         v=v0+2*(t-1);
14         s=((v+v0)*t/2)%10000;
15         cout<<s<<endl;
16         }
17     }
18     return 0;
19 }```

781 篇文章62 人订阅

0 条评论

## 相关文章

### HDUOJ-----2175取(m堆)石子游戏

2769

Jungle Roads Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768...

3137

### 3298: [USACO 2011Open]cow checkers

3298: [USACO 2011Open]cow checkers Time Limit: 10 Sec  Memory Limit: 128 MB Subm...

2806

3766

### HDUOJ---hello Kiki

Hello Kiki Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K...

2749

31111

### Most Influential Data Science Accounts on Twitter

The Data Science Influencers: The Tops in Terms of "Insider Score" According to ...

2598

### HDUOJ-------2493Timer(数学 2008北京现场赛H题)

Timer Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Jav...

2614

31013

### POJ-2184 Cow Exhibition(01背包变形)

Cow Exhibition Time Limit: 1000MS Memory Limit: 65536K Total Submission...

29310