Results 1 to 3 of 3
Thread: C ?
Hybrid View
-
27th May 2011 01:09 #1
C ?
! , , , .
n, nxn, . ( !). , . .
. ,
i=1 j=1
i=2 j=1 ; i=1 j=2
i=3 j=1 ; i=2 j=2 ; i=1 j=3
.......
..
!MB: ASRock B550 Phantom Gaming 4 | CPU: R7 3700X | AIO: Deepcool GAMMAXX L120 | RAM: 2x16GB Adata RGB DDR4 3600 | VGA: GF GTX 1060 3GB | NVME: Kingston A2000 500GB | HDD: Seagate const. 1TB + Toshiba 2TB | Case: DeepCool MACUBE | Monitor: Eizo S2433W | ZK5499
-
27th May 2011 01:53 #2
. NxN 2*(N-1) ( ).
:
1) N-1 i, 1 i (i e [1..N-1])
2) N-1 n, i+1 n - i (i e [1..N-1])
T.e. :
1) for (i = 1; i <= n - 1; i++) for (j = 0; j < i; j++) // a[i-j][1+j]
2) for (i = 1; i <= n - 1; i++) for (j = 0; j < n - i; j++) // a[n-j][i + 1 + j], . .
"640K ught to be enough for anybody" - Bill Gates, 1981
::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel
-
29th May 2011 00:29 #3
,
!
.. , 11, 12.... .MB: ASRock B550 Phantom Gaming 4 | CPU: R7 3700X | AIO: Deepcool GAMMAXX L120 | RAM: 2x16GB Adata RGB DDR4 3600 | VGA: GF GTX 1060 3GB | NVME: Kingston A2000 500GB | HDD: Seagate const. 1TB + Toshiba 2TB | Case: DeepCool MACUBE | Monitor: Eizo S2433W | ZK5499




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in