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

Ended

Participants:189

Verdict:Wrong Answer
Score:0 / 100
Submitted:2017-12-17 14:12:56

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
#include <stdio.h>
#include <iostream>
#include <vector> 
using namespace std;
int xmulti(int x){
    int pro = x;
    
    for(;x>0;x-=2){
        pro *= x;
    }
    return pro;
}
int main(){
    int n;
    scanf("%d", &n);
    vector<int> res;
    
    while(n){
        int x,k;
        scanf("%d %d", &x,&k);
        
        int _x = xmulti(x);
        int has = false;
        for(int y=x;y>=1;y-=2){
            int _y = xmulti(y);
            if((_x/_y)%10 == k){
                res.push_back(y);
                has = true;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX