Please read the new rule regarding the restriction on the use of AI tools. ×

MakCoder's blog

By MakCoder, 13 years ago, In Russian
scanf("%I64d", &n);

x = sqrt(n);
cout<<x;

printf("\n%I64d", int(sqrt(n)));


если в input'е вести допустим "10000" то в output'е будет

"100

 100" но если в том же пасе убрать строку сout<<x;

то пас будет таков

scanf("%I64d", &n);

x = sqrt(n);

printf("\n%I64d", int(sqrt(n)));

и ответ на тот же тест будет

"

8630582025050390628"

почему???

 


  
  • Vote: I like it
  • -15
  • Vote: I do not like it