ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1877. Bicycle Codes

why&i think solutions are same&&
Posted by Arseniy 25 May 2012 22:11
#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&&
Posted by mccolt89 11 Oct 2013 16:11
+1 WTF?
Re: why&i think solutions are same&&
Posted by Roger Collins 21 Jan 2015 10:06
Scanf can sometimes convert integers to octal. ie. 0132