$\color{red}{\text{Pascal:}}$
const fi='toado.inp';
fo='toado.out';
var a,b:real;
begin
assign(input,fi);
reset(input);
assign(output,fo);
rewrite(output);
while not eof(f) do
begin
read(a,b);
writeln(trunc(sqrt(a*a+b*b)));
end;
close(input);
close(output);
end.
$\color{red}{\text{C++:}}$
#include <bits/stdc++.h>
using namespace std;
int main(){
freopen("toado.inp","r",stdin);
freopen("toado.out","w",stdout);
int a,b;
while (cin>>a>>b){
cout<<floor(sqrt(a*a+b*b))<<'\n';
}
}