Shawn's Blog

  • Home
  • Tags
  • Categories
  • Archives
  • Search
  • Table of Contents
  • Overview

Shawn

若有恒,何必三更眠五更起;最无益,莫过一日曝十日寒。
392 posts
13 categories
114 tags

洛谷 P1046 [NOIP2005 普及组] 陶陶摘苹果

Posted on 2021-05-03 Edited on 2024-11-24 In 洛谷
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>
using namespace std;
int h[10], t, cnt = 0;
int main() {
for (int i = 0; i < 10; ++i)
cin >> h[i];
cin >> t;
t += 30;
for (int i = 0; i < 10; ++i)
if (h[i] <= t)
++cnt;
cout << cnt << endl;
return 0;
}
# Simulation# NOIP 普及组
洛谷 P1047 [NOIP2005 普及组] 校门外的树
LeetCode 7. Reverse Integer
© 2024 Shawn
Powered by Hexo & NexT.Mist
0%