| ||||||||||
| 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 | |||||||||
水#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator