R-Input and output of'%' characters-\\\\\

R - '%' character input and output
Description
input with three %division of positive integers abc is the month, day, year,

It is required to output as-is in accordance with the input style.

Input
positive integer in the range of three int, with the intermediate %division.

Output
is output as described in the title.

Sample
Input
9%17%2018
Output
9%17%2018

#include <iostream>
#include <bits/stdc++.h>
using namespace std;

int main()
{
    
    
    int a, b, c;
    scanf("%d%%%d%%%d", &a, &b, &c);
    printf("%d%%%d%%%d\n", a, b, c);
    return 0;
}
#include <iostream>
#include <bits/stdc++.h>

using namespace std;

int main()
{
    
    
    int a, b, c;
    scanf("%d\\%d\\%d", &a, &b, &c);
    printf("%d\\%d\\%d\n", a, b, c);
    return 0;
}

Guess you like

Origin blog.csdn.net/KO812605128/article/details/112340813