R - ‘%‘字符的输入输出-\\\\\

R - '%'字符的输入输出
Description
输入三个用 % 分割的正整数 a b c 代表月,日,年,

要求按照输入样式原样输出。

Input
三个int范围内的正整数,中间用 % 分割。

Output
按题目描述原样输出。

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;
}

猜你喜欢

转载自blog.csdn.net/KO812605128/article/details/112340813
今日推荐