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

Ended

Participants:125

Verdict:Wrong Answer
Score:80 / 100
Submitted:2018-01-21 13:23:13

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
// NEWCODE.cpp: 
//
#include<iostream>
#include <cstdio>
#include <stdio.h>
#include <math.h>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;
int getV(char c) {
    if (c == '_')
        return 0;
    if (c == 'R')
        return 1;
    else return 2;
}
int main()
{
    int n;
    int w[2][100005];
    int l[2];
    for (int i = 0; i < 2; ++i) {
        string c;
        int j = 0;
        cin >> c;
        for (j = 0; c[j] != '\0'; ++j) {
            w[i][j] = getV(c[j]);
        }
        l[i] = j;
    }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX