- 호너의법칙 . . . . 7 matches
A(x) = (a<sub>n</sub>)X<sup>n</sup>+ a<sub>n-1</sub>X<sup>n-1</sup> + ... + a<sub>1</sub>X + a<sub>X</sub>
((((a<sub>n</sub>)X + (a<sub>n-1</sub>))X + (a<sub>n-2</sub>))X + ... a<sub>1</sub>)X + a<sub>0</sub>
아마 a[11 안에 들어있는 값들은 an, an-1인듯한데, 그렇다면 n의 값도 입력받는지? 11개 고정?
곱셈과 덧셈횟수를 줄이라는데, { ... ((anX + an-1)X + an-2)x + ... a1 }X + a0 모양으로 정해진게 아니었던가..;;ㅁ;;
그리고 Xn-1는 X의 n-1승 맞음. 곱셈이나 덧셈을 줄이라는 말은, 아마 최소의 항 수를 가지게 하는 것 같음.
- [Lovely]boy^_^/USACO/BrokenNecklace . . . . 5 matches
cur = temp[len-1];
if(temp[len-1-j] != 'w')
cur = temp[len-1-j];
if(cur == temp[len-1-j] || temp[len-1-j] == 'w')
- TkinterProgramming/Calculator2 . . . . 4 matches
('Sin', 'Sin-1', 'E', KC1, FUN, 'sin'),
('Tan', 'Tan-1', 'G', KC1, FUN, 'tan'),
('7', 'Un-1', 'O', KC2, KEY, '7'),
('8', 'Vn-1', 'P', KC2, KEY, '8'),
- VonNeumannAirport/Leonardong . . . . 4 matches
return self.matrix[origin-1][destination-1]
self.matrix[origin-1][traffic.destination-1] = traffic.load
- 새싹교실/2011/Noname . . . . 3 matches
return n*factorial(n-1);
hanoi(n-1,from,temp,to);
hanoi(n-1,temp,to,from);
- 새싹교실/2012/열반/120514 . . . . 3 matches
return n*fact(n-1);
hanoi(n-1. a. c. b);
hanoi(n-1, b, a, c);
- 알고리즘2주숙제 . . . . 3 matches
시그마(i=1~n)i*(Hi) = n*(n+1)/2*(Hn) -(n-1)*n/4의 식이 사실임을 증명하라
G(n) = G(n-1) + 2G(n-2) + 3G(n-3) + ... + nG(0), for n > 0
5. Let us use a generating function to find a formula for s<sub>n</sub>, where s<sub>0</sub> = s<sub>1</sub> = 1, and s<sub>n</sub> = -s<sub>n-1</sub> + 6s<sub>n-2</sub> for n ≥ 2.
- HanoiProblem/은지 . . . . 2 matches
hanoi(n-1, from, to, by);
hanoi(n-1, by, from, to);
- InterWikiIcons . . . . 2 matches
* [[Icon(moin-new.gif)]]Amazon - http://puzzlet.org/imgs/amazon-16.png
* Jangnan - http://puzzlet.org/imgs/jangnan-16.png (16x16x16)
- JollyJumpers/강소현 . . . . 2 matches
if(Math.abs(arr[i+1]-arr[i]) >= size)//size 넘어가면 1~n-1을 넘어가니까.
if(jollyNum[i] == 0)//1~n-1 중 하나라도 포함 안하면 not jolly
- PythonForStatement . . . . 2 matches
These represent finite ordered sets indexed by non-negative numbers. The built-in function len() returns the number of items of a sequence. When the length of a sequence is n, the index set contains the numbers 0, 1, ..., n-1. Item i of sequence a is selected by a[i].
음수가 아닌수로 제한되어 있으며 순서가 매겨진 집합. 내장함수인 len()는 시퀀스의 아이템 갯수를 반환한다. 시퀀스의 길이라 n이면, 인덱스는 0..n-1 까지의 범위를 가진다. 시퀀스의 아이템 i는 a[i]로 선택된다.
- Self-describingSequence/1002 . . . . 2 matches
if len(table) > n-1:
return table[n-1]
- SubVersionPractice . . . . 2 matches
[http://subversion.tigris.org/files/documents/15/25364/svn-1.2.3-setup.exe Download Subversion]
[http://prdownloads.sourceforge.net/tortoisesvn/TortoiseSVN-1.3.0.5377-RC2-svn-1.3.0.msi?download Download TortoiseSVN]
- 데블스캠프2009/월요일/연습문제/svn코드레이스/박준호 . . . . 2 matches
void main(){int n,i,j;scanf("%d",&n);for(i=0;i<n;i++){for(j=0;j<n;j++){(i==0||i==n-1)?printf("*"):((j==0||j==n-1)?printf("*"):printf(" "));}puts("");}}
- 마름모출력/김유정 . . . . 2 matches
for (column=a ; column > row ; column=column-1)
for(star=0;star<2*column-1;star=star+1)
- 새싹교실/2012/AClass . . . . 2 matches
1. 혜림이누나, 상희누나 과제를 for문을 각각 3개, 4개만 써서 해보세요.(hint 2*n-1)
sum=fact(n-1)*n;
- 새싹교실/2012/아무거나/2회차 . . . . 2 matches
while (a<=n-1) {
for(a=1;a<=2*n-1;a++){
- 새싹교실/2012/주먹밥 . . . . 2 matches
return n * factorial(n-1);
return n + summary(n-1);
- 수학의정석/집합의연산/이영호 . . . . 2 matches
메모리의 크기는 Ssub(n) = 2Ssub(n-1) + asub(n-1) + 1 이 된다.
- Basic알고리즘/팰린드롬/허아영 . . . . 1 match
for(int i = 0; i < (len-1)/2; i += 2)
- Bridge/권영기 . . . . 1 match
p = n-1;
- CompleteTreeLabeling/조현태 . . . . 1 match
such_point=remain-1;
- FactorialFactors/1002 . . . . 1 match
F(n) = Count(n) + F(n-1)
- HowManyFibs? . . . . 1 match
f<sub>n</sub>:=f<sub>n-1</sub> + f<sub>n-2</sub (n≥3)
- HowManyFibs?/1002 . . . . 1 match
if n in [1,2]: return s[n-1]
- HowManyPiecesOfLand?/하기웅 . . . . 1 match
return (n.Power(4)-6*(n.Power(3))+23*n*n-18*n+24)/24;
- HowManyZerosAndDigits/김회영 . . . . 1 match
return n*factorial(n-1);
- JollyJumpers/iruril . . . . 1 match
// 두 수의 차 값은 1 ~ n-1
- JollyJumpers/곽세환 . . . . 1 match
// 차이값이 1 ~ n-1 사이에 모두 존재해야한다
- JumpJump/김태진 . . . . 1 match
sum = ((n-1)*n)/2 +1;
- MoinMoinTodo . . . . 1 match
* Support for -- (‐ ?), << and >> (french quotes) and possibly any (Latin-1) SGML entity.
- Pairsumonious_Numbers/권영기 . . . . 1 match
for(i = 0; i<n*(n-1)/2; i++){
- RandomWalk2/상규 . . . . 1 match
if(currentj==-1) currentj=n-1;
- ReverseAndAdd/김정현 . . . . 1 match
if a[n]!=a[len(a)-n-1]:
- Score/1002 . . . . 1 match
각 sub 단위의 "O" 의 갯수를 세고 이에 대해 각 부분별로 f(n) = f(n-1)+1 에 대한 총합 계산을 해주면 되겠다 생각.
- StacksOfFlapjacks/이동현 . . . . 1 match
그 다음엔 0~n-1 까지 케익을 가지고 동일한 동작을 반복하고.. 이렇게 최고 n번정도만 하면 팬케익이 작은것부터 큰것까지 정렬된다.
- 데블스캠프2006/SVN . . . . 1 match
* SVN download : http://prdownloads.sourceforge.net/tortoisesvn/TortoiseSVN-1.3.5.6804-svn-1.3.2.msi?use_mirror=heanet
- 데블스캠프2006/월요일/연습문제/for/임다찬 . . . . 1 match
return n*factorial(n-1);
- 루프는0부터? . . . . 1 match
보통 비대칭형 범위는 대칭형 범위보다 더 사용하기 쉽습니다. 왜냐하면 다음과 같은 중요한 속성이 있기 때문입니다. [m, n)과 같은 형식의 범위는 n-m개의 요소들을 가지며 [m,n]의 형식은 n-m+1의 요소들을 가집니다. 따라서 [0, rows)에서 요소들의 개수는 직관적인데 반해, [1, rows]에서 요소들의 개수는 덜 직관적 입니다. 이러한 속성차이는, 특히 빈 범위의 경우에 더 뚜렷합니다. 만약 비 대칭형 범위를 사용한다면, 빈 범위를 [m,n)으로 표현할수 있지만, 대칭형 범위에서는 [n, n-1]을 사용해야 합니다. 범위의 끝이 시작보다 더 작을수 있따는 가능성은 프로그램 설계시 끝이 정의되지 않아 버리는 문제를 야기 시킬수 있습니다.
- 마름모출력/임다찬 . . . . 1 match
for(i=0;i<byun-1;i++){
- 문자열검색/허아영 . . . . 1 match
for(i = 0; i <= str_len-1; i++)
- 반복문자열/임인택 . . . . 1 match
message target msg n = message (target++msg++"\n") (msg) (n-1)
- 새싹교실/2011/學高/8회차 . . . . 1 match
* 아래 소스코드를 큰 틀로 해서 recursive function을 이용하여 하노이의 탑 시뮬레이션 프로그램을 작성하라(이동 상황을 출력한다, 전역변수를 이용하여 횟수를 카운트하게 하여 H_n = 2*H_n-1 + 1 점화식에 맞는 답이 나옴을 보여야한다.)
- 새싹교실/2012/개차반 . . . . 1 match
* 2진수를 10진수로 바꾸려면 2진수의 자릿수에 따라 2^(n-1)을 곱해주면 된다
- 새싹교실/2012/아우토반/앞반/4.5 . . . . 1 match
for(j=0; j<(2*n-1); j++)
- 새싹교실/2012/열반/120402 . . . . 1 match
printstar(n-1);
- 새싹교실/2012/열반/120507 . . . . 1 match
* A[n]으로 선언할 경우 첨자는 0 부터 n-1 까지 쓸 수 있습니다.
- 숫자를한글로바꾸기/허아영 . . . . 1 match
if(i != (number_len-1))
- 캠이랑놀자/051228 . . . . 1 match
return n*fact(n-1)
- 파스칼삼각형/김수경 . . . . 1 match
return Pascal(m-1, n-1) + Pascal(m-1, n);
- 파스칼삼각형/김태훈zyint . . . . 1 match
return n*factorial(n-1);
- 피보나치/고준영 . . . . 1 match
return (pibo($n-1) + pibo($n-2));
- 피보나치/방선희 . . . . 1 match
return arr[n-1];
- 피보나치/조현태 . . . . 1 match
return pibo( n-1)+pibo(n-2)
Found 54 matching pages out of 7557 total pages (2430 pages are searched)
You can also click here to search title.