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

Posted by uncleD at 2019-08-20 16:13:57 on Problem 4011
#include<iostream>
#include<stdio.h>

using namespace std;

int main()
{
	int cnt = 0;
	int n;
	
	while (scanf_s("%d", &n) != EOF)
	{
		cnt = 0;
		
		for (int i = 0; i <= 99; i++)
			for (int j = 0; j <= 99; j++)
				if (i + j == n)
					cnt += 1;

		cout << cnt << endl;
	}

	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