[Offer收割]编程练习赛71 register

Ended

Participants:147

Verdict:Wrong Answer
Score:80 / 100
Submitted:2018-08-05 12:56:31

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*by kzl*/
#include<iostream>
#include<cstring>
#include<cstdio>
#include<algorithm>
#include<cmath>
#include<queue>
#include<stack>
#include<vector>
using namespace std;
const int maxx = 1e5+500;
const int INF = 0x3f3f3f3f;
typedef long long LL;
int n;
LL k;
LL cu[maxx];
int main()
{
    while(cin>>n>>k)
    {
        int ans = 0,num1=0,num2=0;
        for(int i=0; i<n; i++)
        {
            cin>>cu[i];
             cu[i] = cu[i]%k;
            if(cu[i]==0)num1++;
            if(cu[i]*2==k)num2++;
           
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX