| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
Re:asmIn Reply To:asm Posted by:azma at 2009-05-11 13:47:25 > #include<iostream>
> using namespace std;
> int main(){
> int N,i=0,a,b;cin>>N;
> l3:;
> cin>>a>>b;
> __asm{
> mov eax,a;
> cmp eax,b;
> jge l1;
> }
> cout<<"NO BRAINS"<<endl;
> goto l2;
> l1:;
> cout<<"MMM BRAINS"<<endl;
> l2:;
> __asm{
> inc i;
> mov ecx,i;
> cmp ecx,N;
> jnz l3;
> }
> return 0;
> }
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator