|
|
вернуться в форумwhy&i think solutions are same&& #include <stdio.h> using namespace std
void main() { __int64 a,b,i,f=0; scanf("%i64d",&a); scanf("%i64d",&b); if( ((a % 2)==0) || ( ( b % 2)== 1)) printf("yes"); else printf("no"); } it has wa32 on c But same alghoritm on delphi has ac& program Project2; {$APPTYPE CONSOLE} uses SysUtils; var a,b:integer; begin readln(a); readln(b); if( ( ( a mod 2 )= 0 ) or ( (b mod 2) = 1) ) then write('yes') else write('no'); end. Chto za fignya? Re: why&i think solutions are same&& +1 WTF? Re: why&i think solutions are same&& Scanf can sometimes convert integers to octal. ie. 0132 |
|
|