0 ~ 10 까지 있는데
0 ~ 9 까지는 튜토리얼 인가 보다
0 ~ 2 까지 하고는 바로 10으로 건너뛰었다가 2시간 반째 해메다 포기했다...
방 탈출 게임인거 같은데 꽤 재밌다.
2016년 12월 26일 월요일
2016년 12월 6일 화요일
??? 자간 문제가 아닌데?
노트북으로 하면 자간 70%로 해야 하고
데스크탑 으로 하면 130%로 해야 자연스럽다...
익스플로러 버전 차이인거 같기도 하고?
둘다 윈10 인데 ... 뭔 차이 일까
데스크탑 으로 하면 130%로 해야 자연스럽다...
익스플로러 버전 차이인거 같기도 하고?
둘다 윈10 인데 ... 뭔 차이 일까
8911 - 거북이
문제 보기
간단한 좌표 문제 였던거 같다.
간단한 좌표 문제 였던거 같다.
펼친 상태
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | #include <bits/stdc++.h> using namespace std; typedef long long LL; const int dx[]={0,1,0,-1}; const int dy[]={1,0,-1,0}; int main(){ int t; scanf("%d",&t); for(;t--;){ char arr[502]; scanf(" %s",arr); int u=0,d=0,r=0,l=0,x=0,y=0; int dir=0; int n=strlen(arr); for(int i=0;i<n;i++){ if(arr[i]=='F'){ x=x+dx[dir]; y=y+dy[dir]; u=max(u,y); r=max(r,x); d=min(d,y); l=min(l,x); } else if(arr[i]=='B'){ x=x-dx[dir]; y=y-dy[dir]; u=max(u,y); r=max(r,x); d=min(d,y); l=min(l,x); } else if(arr[i]=='L'){ dir=(dir+3)%4; } else{ dir=(dir+1)%4; } } printf("%d\n",(u-d)*(r-l)); } return 0; } | cs |
2016년 12월 5일 월요일
test 들을 통해 알게 되었다 Color Scripter 자간 60%
첨에 130 되있던데 왠지 자꾸 한칸씩 띄어져 보인다 했다
그래서 이거 떄문인가? 하고 100%로 바꿨는데 똑같길래
아닌가? 했었는데
실험정신이 부족했다
50 하니까 뙇 하고 나타남 -> test11
70이 딱 적당한거 같다
외쳐 God joonas!!
그래서 이거 떄문인가? 하고 100%로 바꿨는데 똑같길래
아닌가? 했었는데
실험정신이 부족했다
50 하니까 뙇 하고 나타남 -> test11
70이 딱 적당한거 같다
외쳐 God joonas!!
2016년 11월 30일 수요일
test3
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
32
33
34
35
36
37
38
39
40
41
42
43
|
#include <iostream>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <queue>
#include <algorithm>
#include <map>
#include <stack>
#include <vector>
using namespace std;
#define INF 987654321
#define MOD 1000000007
#define P make_pair
typedef long long LL;
typedef unsigned long long UL;
int arr[100001];
int brr[100001],bnt;
int main(){
int n;
scanf("%d",&n);
for(int i=0;i<n;i++)
scanf("%d",&arr[i]);
for(int i=0;i<n;i++){
if(bnt==0){
brr[bnt++]=arr[i];
}
else{
if(brr[bnt-1]<arr[i]) brr[bnt++]=arr[i];
else{
int change=lower_bound(brr,brr+bnt,arr[i])-brr;
brr[change]=arr[i];
}
}
}
printf("%d",bnt);
return 0;
}
| cs |
하이라이터 쓰는법
c++은 특히 꺽쇠가 많다.
그래서 <pre> 쓰기 귀찮? 았었는데
http://colorscripter.com/ 라는 곳을 이용하면 된다
요렇게
그래서 <pre> 쓰기 귀찮? 았었는데
http://colorscripter.com/ 라는 곳을 이용하면 된다
요렇게
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
32
33
34
35
36
37
38
39
40
41
42
43
|
#include <iostream>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <queue>
#include <algorithm>
#include <map>
#include <stack>
#include <vector>
using namespace std;
#define INF 987654321
#define MOD 1000000007
#define P make_pair
typedef long long LL;
typedef unsigned long long UL;
int arr[100001];
int brr[100001],bnt;
int main(){
int n;
scanf("%d",&n);
for(int i=0;i<n;i++)
scanf("%d",&arr[i]);
for(int i=0;i<n;i++){
if(bnt==0){
brr[bnt++]=arr[i];
}
else{
if(brr[bnt-1]<arr[i]) brr[bnt++]=arr[i];
else{
int change=lower_bound(brr,brr+bnt,arr[i])-brr;
brr[change]=arr[i];
}
}
}
printf("%d",bnt);
return 0;
}
| cs |
2016년 8월 12일 금요일
2016년 8월 4일 목요일
2016년 7월 12일 화요일
2016년 6월 18일 토요일
2016년 6월 9일 목요일
Floating action button 을 사용해보자
참조 자료들
http://samsetdev.blogspot.kr/2015/05/floating-action-button-material-design.html
https://libraries.io/github/str4d/android-floating-action-button
https://www.npmjs.com/package/nativescript-floatingactionbutton
http://www.viralandroid.com/2016/02/android-floating-action-menu-example.html
http://stackoverflow.com/questions/26740107/is-there-a-library-for-floating-action-buttons-fab-with-labels
<Expand floating button>
http://stackoverflow.com/questions/31111431/android-vertically-expanded-floating-action-button
https://blog.stylingandroid.com/floating-action-button-part-3/
part-(1~3) 써도 됨
<android expand circular floating button>
https://github.com/oguzbilgener/CircularFloatingActionMenu
http://samsetdev.blogspot.kr/2015/05/floating-action-button-material-design.html
https://libraries.io/github/str4d/android-floating-action-button
https://www.npmjs.com/package/nativescript-floatingactionbutton
http://www.viralandroid.com/2016/02/android-floating-action-menu-example.html
http://stackoverflow.com/questions/26740107/is-there-a-library-for-floating-action-buttons-fab-with-labels
<Expand floating button>
http://stackoverflow.com/questions/31111431/android-vertically-expanded-floating-action-button
https://blog.stylingandroid.com/floating-action-button-part-3/
part-(1~3) 써도 됨
<android expand circular floating button>
https://github.com/oguzbilgener/CircularFloatingActionMenu
2016년 5월 25일 수요일
2016년 5월 18일 수요일
잠깐의 과제
시샵을 잠깐 구경 했다
앞으로 연달아 알고리즘 대회인데
너무 준비안하는거같다
디피 안그래도 ㅂ읍ㅅ읍 인데
더 못해짐....
제발 빨리 과제를 끝내고
알고리즘에 전념할수 있기를....
앞으로 연달아 알고리즘 대회인데
너무 준비안하는거같다
디피 안그래도 ㅂ읍ㅅ읍 인데
더 못해짐....
제발 빨리 과제를 끝내고
알고리즘에 전념할수 있기를....
2016년 4월 29일 금요일
아아아아아아아아아아아아ㅏ
BOJ 900를 넘겼지만
내가 푼 문제들은 쉬운문제들 뿐이고
너무 어려운 문제들이 아직 개 많다
결론은 공부합시다....
JM북을 한번 빨리 봐야 SCPC를 준비하던 ACM본선 냄새라도 맡아볼듯....
내가 푼 문제들은 쉬운문제들 뿐이고
너무 어려운 문제들이 아직 개 많다
결론은 공부합시다....
JM북을 한번 빨리 봐야 SCPC를 준비하던 ACM본선 냄새라도 맡아볼듯....
2016년 4월 20일 수요일
2016년 4월 18일 월요일
[BOJ]1727 커플만들기
https://www.acmicpc.net/problem/1727
n과 m 이 다른 디피
우선적으로 최대한 많은 커플을 만들어야 하기 때문에
min(n,m)개는 만족해야 한다고 생각해서 디피를 짯다
n>m , arr[n] brr[m] 이라고 할때
arr[i] 와 brr[j] 를 짝지을지, arr[i+1]와 brr[j]를 짝지을지 를 생각했다
n과 m 이 다른 디피
우선적으로 최대한 많은 커플을 만들어야 하기 때문에
min(n,m)개는 만족해야 한다고 생각해서 디피를 짯다
n>m , arr[n] brr[m] 이라고 할때
arr[i] 와 brr[j] 를 짝지을지, arr[i+1]와 brr[j]를 짝지을지 를 생각했다
피드 구독하기:
글 (Atom)