일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 리눅스 명령어
- 제어문
- For문
- 정보영재원
- Linux
- 영재교육원
- IT
- if문
- C++
- API
- 정보과학
- 독후감
- 수학영재원
- 배열
- c언어
- 풀이&소스코드저작권:왕유승
- 백도어
- 프로그래밍
- 자료구조
- 리눅스
- 독서 감상문
- 문제출저:www.dovelet.com
- 반복문
- DBMS
- 정보올림피아드
- Backdoor
- 참조은요양병원
- 다중반복문
- 알고리즘
- C
Archives
- Today
- Total
목록2009~2014/C/C++ (225)
되는대로 살자
[올림피아드 기출문제&풀이]
#include struct flower { int openmonth; int openday; int closemonth; int closeday; }flower[100000]; int main() { long n; int curmonth=3,curday=1,maxmonth=0,maxday=0,visit[100000],maxpos; int flowercnt=0,i,noflowerchk; scanf("%d",&n); for(i=0;imaxmonth) || (flower[i].closemonth==maxmonth&&flower[i].closeday>=maxday))) { maxmonth=flower[i].closemonth; maxday=flower[i].closeday; maxpos=i; noflowerc..
2009~2014/C/C++
2011. 12. 12. 17:27