Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

asm

Posted by azma at 2009-05-11 13:47:25 on Problem 2027
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator