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 1293. Eniya

->AC<-Very interesting AC ;)
Posted by alexutz_mircescu 18 Oct 2007 19:22
You have to calculate A*B*N*2 ;)

#include<stdio.h>
#include<math.h>

long a,b,n;

int main() {
    scanf("%ld%ld%ld",&n,&a,&b);
    printf("%ld",n*a*b*2);
    return 0;
}
//good luck!
Re: ->AC<-Very interesting AC ;)
Posted by Romko [Lviv NU] 19 Oct 2007 02:03
Thank you very mach!!! I would never done this program with myself! Thank you! :D
Re: ->AC<-Very interesting AC ;)
Posted by DixonD (Lviv NU) 19 Oct 2007 02:48
lol
Re: ->AC<-Very interesting AC ;)
Posted by Alias (Alexander Prudaev) 20 Oct 2007 21:33
are you genius!
so short AC program...
my AC was
#include <stdio.h>
int main()
{
    int x, y, z;
    scanf("%d %d %d", &x, &y, &z);
    printf("%d\n", (((!!((((!!(x&0x1))?y<<0:0)
+((!!(x&0x2))?y<<1:0)+((!!(x&0x4))?y<<2:0)+((!!(x&0x8))?y<<3:0)+((!!(x&0x10))?y<<4:0)
+((!!(x&0x20))?y<<5:0)+((!!(x&0x40))?y<<6:0)+((!!(x&0x80))?y<<7:0))&0x1))?z<<0:0)
+((!!((((!!(x&0x1))?y<<0:0)+((!!(x&0x2))?y<<1:0)+((!!(x&0x4))?y<<2:0)+((!!(x&0x8))?y<<3:0)
+((!!(x&0x10))?y<<4:0)+((!!(x&0x20))?y<<5:0)+((!!(x&0x40))?y<<6:0)+((!!(x&0x80))?y<<7:0)
)&0x2))?z<<1:0)+((!!((((!!(x&0x1))?y<<0:0)+((!!(x&0x2))?y<<1:0)+((!!(x&0x4))?y<<2:0)
+((!!(x&0x8))?y<<3:0)+((!!(x&0x10))?y<<4:0)+((!!(x&0x20))?y<<5:0)+((!!(x&0x40))?y<<6:0)
+((!!(x&0x80))?y<<7:0))&0x4))?z<<2:0)+((!!((((!!(x&0x1))?y<<0:0)+((!!(x&0x2))?y<<1:0)
+((!!(x&0x4))?y<<2:0)+((!!(x&0x8))?y<<3:0)+((!!(x&0x10))?y<<4:0)+((!!(x&0x20))?y<<5:0)
+((!!(x&0x40))?y<<6:0)+((!!(x&0x80))?y<<7:0))&0x8))?z<<3:0)+((!!((((!!(x&0x1))?y<<0:0)
+((!!(x&0x2))?y<<1:0)+((!!(x&0x4))?y<<2:0)+((!!(x&0x8))?y<<3:0)+((!!(x&0x10))?y<<4:0)
+((!!(x&0x20))?y<<5:0)+((!!(x&0x40))?y<<6:0)+((!!(x&0x80))?y<<7:0))&0x10))?z<<4:0)
+((!!((((!!(x&0x1))?y<<0:0)+((!!(x&0x2))?y<<1:0)+((!!(x&0x4))?y<<2:0)+((!!(x&0x8))?y<<3:0)
+((!!(x&0x10))?y<<4:0)+((!!(x&0x20))?y<<5:0)+((!!(x&0x40))?y<<6:0)+((!!(x&0x80))?y<<7:0)
)&0x20))?z<<5:0)+((!!((((!!(x&0x1))?y<<0:0)+((!!(x&0x2))?y<<1:0)+((!!(x&0x4))?y<<2:0)
+((!!(x&0x8))?y<<3:0)+((!!(x&0x10))?y<<4:0)+((!!(x&0x20))?y<<5:0)+((!!(x&0x40))?y<<6:0)
+((!!(x&0x80))?y<<7:0))&0x40))?z<<6:0)+((!!((((!!(x&0x1))?y<<0:0)+((!!(x&0x2))?y<<1:0)
+((!!(x&0x4))?y<<2:0)+((!!(x&0x8))?y<<3:0)+((!!(x&0x10))?y<<4:0)+((!!(x&0x20))?y<<5:0)
+((!!(x&0x40))?y<<6:0)+((!!(x&0x80))?y<<7:0))&0x80))?z<<7:0)+((!!((((!!(x&0x1))?y<<0:0)
+((!!(x&0x2))?y<<1:0)+((!!(x&0x4))?y<<2:0)+((!!(x&0x8))?y<<3:0)+((!!(x&0x10))?y<<4:0)
+((!!(x&0x20))?y<<5:0)+((!!(x&0x40))?y<<6:0)+((!!(x&0x80))?y<<7:0))&0x100))?z<<8:0)
+((!!((((!!(x&0x1))?y<<0:0)+((!!(x&0x2))?y<<1:0)+((!!(x&0x4))?y<<2:0)
+((!!(x&0x8))?y<<3:0)+((!!(x&0x10))?y<<4:0)+((!!(x&0x20))?y<<5:0)+((!!(x&0x40))?y<<6:0)
+((!!(x&0x80))?y<<7:0))&0x200))?z<<9:0)+((!!((((!!(x&0x1))?y<<0:0)+((!!(x&0x2))?y<<1:0)
+((!!(x&0x4))?y<<2:0)+((!!(x&0x8))?y<<3:0)+((!!(x&0x10))?y<<4:0)+((!!(x&0x20))?y<<5:0)
+((!!(x&0x40))?y<<6:0)+((!!(x&0x80))?y<<7:0))&0x400))?z<<10:0)+((!!((((!!(x&0x1))?y<<0:0)
+((!!(x&0x2))?y<<1:0)+((!!(x&0x4))?y<<2:0)+((!!(x&0x8))?y<<3:0)+((!!(x&0x10))?y<<4:0)
+((!!(x&0x20))?y<<5:0)+((!!(x&0x40))?y<<6:0)+((!!(x&0x80))?y<<7:0))&0x800))?z<<11:0)
+((!!((((!!(x&0x1))?y<<0:0)+((!!(x&0x2))?y<<1:0)+((!!(x&0x4))?y<<2:0)
+((!!(x&0x8))?y<<3:0)+((!!(x&0x10))?y<<4:0)+((!!(x&0x20))?y<<5:0)+((!!(x&0x40))?y<<6:0)
+((!!(x&0x80))?y<<7:0))&0x1000))?z<<12:0)+((!!((((!!(x&0x1))?y<<0:0)+((!!(x&0x2))?y<<1:0)
+((!!(x&0x4))?y<<2:0)+((!!(x&0x8))?y<<3:0)+((!!(x&0x10))?y<<4:0)+((!!(x&0x20))?y<<5:0)
+((!!(x&0x40))?y<<6:0)+((!!(x&0x80))?y<<7:0))&0x2000))?z<<13:0)+((!!((((!!(x&0x1))?y<<0:0)
+((!!(x&0x2))?y<<1:0)+((!!(x&0x4))?y<<2:0)+((!!(x&0x8))?y<<3:0)+((!!(x&0x10))?y<<4:0)
+((!!(x&0x20))?y<<5:0)+((!!(x&0x40))?y<<6:0)+((!!(x&0x80))?y<<7:0))&0x4000))?z<<14:0)
+((!!((((!!(x&0x1))?y<<0:0)+((!!(x&0x2))?y<<1:0)+((!!(x&0x4))?y<<2:0)+((!!(x&0x8))?y<<3:0)
+((!!(x&0x10))?y<<4:0)+((!!(x&0x20))?y<<5:0)+((!!(x&0x40))?y<<6:0)+((!!(x&0x80))?y<<7:0)
)&0x8000))?z<<15:0)) << 1);
    return 0;
}
Re: ->AC<-Very interesting AC ;)
Posted by svr 20 Oct 2007 21:39
I think that more interesting to take place
in struggle for 1 position in rating than
to beat begginer
Re: ->AC<-Very interesting AC ;)
Posted by AlexF [USTU Frogs] 20 Oct 2007 22:18
I think Alias is just kidding) Without any bad thoughts)

Edited by author 20.10.2007 22:19
Re: ->AC<-Very interesting AC ;)
Posted by Alias (Alexander Prudaev) 21 Oct 2007 00:24
yes AlexF is right. for me it's just funny.
moreover alexutz_mircescu after this post sayed
that 1555 is easy problem.