vj1002 �河

vj1002 �河 - / / /dp / /case 1. s=t mod s = 0...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
//±ÉÈ˵ķ½·¨ //dp / //case 1. Èç¹û s=t Ôò²Èµ½Ê¯×ÓÊý¾ÍÊÇʯ×Ó×ø±ê mod s = 0 µÄʯ×Ó¸öÊý / //case 2. ʯ×ÓÉÙ¶ø×ø±ê·¶Î§´ó µ±Á½¸öʯ×ÓÏà¾àºÜԶʱ ´ÓµÚÒ»¸öʯ×ÓÍùºóµÄij´¦ x ²½ µ½µÚ¶þ¸öʯ×ÓÊǶ¼¿ÉÒÔ×ßµ½µÄ ¶øÇÒ״̬Ïàͬ //ËùÒÔÕâÁ½¸öʯ×ÓÖ®¼äµÄ¾àÀë¿É¿´³É x ÕâÑù¾ÍʹÊý¾Ý¹æÄ£±ä³ÉÁË x*m ¶ø²»ÊÇ L / //È·¶¨ x µÄ×îСֵ //×Çé¿ö s=9 t=10 Ö»ÒªÁ¬Ðø s ¸ö×ø±ê¶¼¿ÉÒÔÌøµ½ ÄÇôÍùºóËùÓÐ×ø±ê¶¼¿ÉÒÔÌøµ½ //ÏÖÔÚ´Ó 0 ¿ªÊ¼Ìø //µÚÒ»²½ ¿ÉÒÔÌøµ½ 9£¬10 //µÚ¶þ²½ ¿ÉÒÔÌøµ½ 18 £¬19 £¬20 //. .. //µÚ n ²½ ¿ÉÒÔÌøµ½ 9n,9n+1,. ..,9n+n //¼´µ± n=8 ʱÍùºóµÄ ´Ó 9n ¿ªÊ¼µÄ 9 ¸öµã¶¼¿ÉÒÔÌøµ½ //ËùÒÔÕâ¸ö x ×îСֵΪ 72 / const maxp=72; maxm=100; maxn=8109; var l:longint; s,t,m,n,ans:integer;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

vj1002 �河 - / / /dp / /case 1. s=t mod s = 0...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online