pascal 15079번 Arggggggh! (백준)
uses math;var s:string;x,y,c,a,b:real;n,m:int64;beginreadln(n,x,y);repeatn-=1;if n=0 then break;readln(s);m:=length(s);c:=1;a:=0;while s[m]' 'do begin a+=c*(ord(s[m])-48); m-=1; c*=10;end;b:=a/sqrt(2);if s[1]='N'then begin if s[2]='E'then begin x+=b;y+=b;end else if s[2]='W'then begin x-=b;y+=b;end else y+=a;endelse if s[1]='S'then begin if s[2]='E'then begin x+=b;y-=b;end else if s[2]='W'then b..
Pascal/BAEKJOON
2025. 8. 31. 01:51
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 기하학
- C++
- union
- C언어
- DP
- 문자열
- 정렬
- Krustal
- 그리디
- Lazy Propagation
- 스택
- XOR
- BFS
- java
- 누적합
- 구현
- 누적 합
- 1835
- 최소 스패닝 트리
- 브루트포스
- PASCAL
- 오프라인 쿼리
- 세그먼트 트리
- 그래프
- 1835번
- DFS
- 덱
- find
- 백준
- Segment Tree
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 29 | 30 | 31 |
글 보관함
