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

求助大神。。。WA

Posted by xuezhonghao at 2015-12-10 21:34:27 on Problem 2174
#include<cstdio>
#include<string>

#define MAXN 200010

int main(void)
{
    short int a[MAXN];
    int n = 0;
    int key;
    while(scanf("%2x", &a[n++]) == 0);
    n = (n-1) / 2;
    key = 0x20 ^ a[n];
    printf("%x", key);
    for(int i = 0; i < n; ++i){
        key ^= a[i];
        key ^= a[n+i+1];
	printf("%X", key);
    }
    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