C\u00e1c b\u1ed9 d\u00e0n l\u00f4 \u0111\u1ec1 l\u00e0 c\u00e1c b\u1ed9 th\u00f4ng d\u1ee5ng v\u00e0 \u0111\u01b0\u1ee3c nhi\u1ec1u ng\u01b0\u1eddi bi\u1ebft \u0111\u1ebfn c\u0169ng nh\u01b0 s\u1eed d\u1ee5ng<\/figcaption><\/figure>\nS\u1edf d\u0129, g\u1ecdi \u0111\u00e2y l\u00e0 b\u1ed9 l\u00f4 \u0111\u1ec1 t\u1ed5ng l\u00e0 b\u1edfi v\u00ec t\u1ea5t c\u1ea3 c\u00e1c con s\u1ed1 s\u1ebd \u0111\u01b0\u1ee3c th\u1ef1c hi\u1ec7n c\u1ed9ng t\u1ed5ng 2 con s\u1ed1 l\u1ea1i. Quy t\u1eafc t\u00ednh s\u1ed1 th\u00ec t\u01b0\u01a1ng t\u1ef1 nh\u01b0 t\u00ednh \u0111\u1ed1i v\u1edbi b\u00e0i c\u00e0o.<\/p>\n
L\u1ea5y m\u1ed9t v\u00ed d\u1ee5 c\u1ee5 th\u1ec3 \u0111\u1ec3 b\u1ea1n c\u00f3 th\u1ec3 d\u1ec5 d\u00e0ng h\u00ecnh dung:<\/p>\n
T\u1ed5ng =0 s\u1ebd l\u00e0 con s\u1ed1 28 b\u1edfi v\u00ec t\u1ed5ng c\u1ee7a 2 con s\u1ed1 c\u1ed9ng l\u1ea1i l\u00e0 10 v\u00e0 t\u00ednh b\u1eb1ng 0. Ho\u1eb7c n\u1ebfu t\u1ed1ng = 1 th\u00ec ta s\u1ebd c\u00f3 con s\u1ed1 74 b\u1edfi v\u00ec t\u1ed5ng c\u1ee7a 4 v\u00e0 7 b\u1eb1ng 11 v\u00e0 t\u00ednh b\u1eb1ng 1.<\/p>\n
Sau \u0111\u00f3, ta s\u1ebd c\u00f3 c\u00e1c b\u1ed9 s\u1ed1 t\u1ed5ng \u0111\u1ea7y \u0111\u1ee7 nh\u01b0 sau:<\/em><\/p>\n\n- T\u1ed5ng 0 ta c\u00f3 c\u00e1c con s\u1ed1 : 19,91,28,82,37,73,46,64,55,00<\/strong><\/li>\n
- T\u1ed5ng 1 ta c\u00f3 c\u00e1c con s\u1ed1 : 01,10,29,92,38,83,47,74,56,65<\/strong><\/li>\n
- T\u1ed5ng 2 ta c\u00f3 c\u00e1c con s\u1ed1 : 02,20,39,93,48,84,57,75,11,66<\/strong><\/li>\n
- T\u1ed5ng 3 ta c\u00f3 c\u00e1c con s\u1ed1 : 03,30,12,21,49,94,58,85,67,76<\/strong><\/li>\n
- T\u1ed5ng 4 ta c\u00f3 c\u00e1c con s\u1ed1 : 04,40,13,31,59,95,68,86,22,77<\/strong><\/li>\n
- T\u1ed5ng 5 ta c\u00f3 c\u00e1c con s\u1ed1 : 05,50,14,41,23,32,69,96,78,87<\/strong><\/li>\n
- T\u1ed5ng 6 ta c\u00f3 c\u00e1c con s\u1ed1 : 06,60,15,51,24,42,79,97,33,88<\/strong><\/li>\n
- T\u1ed5ng 7 ta c\u00f3 c\u00e1c con s\u1ed1 : 07,70,16,61,25,52,34,43,89,98<\/strong><\/li>\n
- T\u1ed5ng 8 ta c\u00f3 c\u00e1c con s\u1ed1 : 08,80,17,71,26,62,35,53,44,99<\/strong><\/li>\n
- T\u1ed5ng 9 ta c\u00f3 c\u00e1c con s\u1ed1: 09,90,18,81,27,72,36,63,45,54<\/strong><\/li>\n<\/ul>\n
C\u00e1ch l\u1eadp d\u00e0n \u0111\u1ec1 10 s\u1ed1 nu\u00f4i khung 3 ng\u00e0y c\u1ef1c chu\u1ea9n x\u00e1c<\/strong><\/p><\/blockquote>\nNh\u1eefng b\u1ed9 s\u1ed1 trong l\u00f4 \u0111\u1ec1 x\u1ebfp theo \u0111\u1ea7u<\/b><\/h2>\n
B\u00ean c\u1ea1nh b\u1ed9 s\u1ed1 theo t\u1ed5ng th\u00ec c\u00f2n c\u00f3 b\u1ed9 s\u1ed1 \u0111\u01b0\u1ee3c s\u1eafp x\u1ebfp theo \u0111\u1ea7u. Kh\u00f4ng gi\u1ed1ng nh\u01b0 b\u1ed9 s\u1ed1 t\u1ed5ng th\u00ec v\u1edbi b\u1ed9 s\u1ed1 n\u00e0y, b\u1ea1n s\u1ebd c\u1ea3m th\u1ea5y d\u1ec5 d\u00e0ng h\u01a1n. \u0110\u00e2y l\u00e0 nh\u1eefng b\u1ed9 s\u1ed1 \u0111\u01b0\u1ee3c g\u1ecdi nh\u01b0 v\u1eady b\u1edfi l\u1ebd v\u1edbi nh\u1eefng ng\u01b0\u1eddi ch\u01a1i l\u00f4 \u0111\u1ec1 ch\u1ec9 c\u1ea7n nh\u00ecn v\u00e0o con s\u1ed1 \u0111\u1ea7u l\u00e0 \u0111\u00e3 c\u00f3 th\u1ec3 t\u00ednh ra.<\/p>\n
V\u00ed d\u1ee5:<\/strong> N\u1ebfu nh\u01b0 \u0111\u1ea7u s\u1ed1 1 th\u00ec ta s\u1ebd c\u00f3 c\u00e1c con s\u1ed1 \u0111\u01b0\u1ee3c b\u1eaft \u0111\u1ea7u b\u1eb1ng s\u1ed1 1 t\u1eeb s\u1ed1 10 \u0111\u1ebfn s\u1ed1 19. N\u1ebfu \u0111\u1ea7u l\u00e0 2 th\u00ec s\u1ebd c\u00f3 c\u00e1c s\u1ed1 b\u1eaft \u0111\u1ea7u t\u1eeb 2 t\u01b0\u01a1ng t\u1ef1 nh\u01b0 \u0111\u1ea7u s\u1ed1 1.<\/p>\nTheo \u0111\u00f3, ta s\u1ebd c\u00f3 c\u00e1c c\u1eb7p s\u1ed1 \u0111\u1ea7y \u0111\u1ee7 s\u1eafp x\u1ebfp theo \u0111\u1ea7u nh\u01b0 sau:<\/strong><\/h4>\n\n- \u0110\u1ea7u 0 ta c\u00f3 c\u00e1c s\u1ed1: 00,01,02,03,04,05,06,07,08,09<\/strong><\/li>\n
- \u0110\u1ea7u 1 ta c\u00f3 c\u00e1c s\u1ed1: 10,11,12,13,14,15,16,17,18,19<\/strong><\/li>\n
- \u0110\u1ea7u 2 ta c\u00f3 c\u00e1c s\u1ed1: 20,21,22,23,24,25,26,27,28,29<\/strong><\/li>\n
- \u0110\u1ea7u 3 ta c\u00f3 c\u00e1c s\u1ed1: 30,31,32,33,34,35,36,37,38,39<\/strong><\/li>\n
- \u0110\u1ea7u 4 ta c\u00f3 c\u00e1c s\u1ed1: 40,41,42,43,44,45,46,47,48,49<\/strong><\/li>\n
- \u0110\u1ea7u 5 ta c\u00f3 c\u00e1c s\u1ed1: 50,51,52,53,54,55,56,57,58,59<\/strong><\/li>\n
- \u0110\u1ea7u 6 ta c\u00f3 c\u00e1c s\u1ed1: 60,61,62,63,64,65,66,67,68,69<\/strong><\/li>\n
- \u0110\u1ea7u 7 ta c\u00f3 c\u00e1c s\u1ed1: 70,71,72,73,74,75,76,77,78,79<\/strong><\/li>\n
- \u0110\u1ea7u 8 ta c\u00f3 c\u00e1c s\u1ed1: 80,81,82,83,84,85,86,87,88,89<\/strong><\/li>\n
- \u0110\u1ea7u 9 ta c\u00f3 c\u00e1c s\u1ed1: 90,91,92,93,94,95,96,97,98,99<\/strong><\/li>\n<\/ul>\n