R - '%'字符的输入输出
Description
输入三个用 `` % `` 分割的正整数 a b c 代表月,日,年,
要求按照输入样式原样输出。
Input
三个int范围内的正整数,中间用 `` %`` 分割。
Output
按题目描述原样输出。
Sample
Input
9%17%2018
Output
9%17%2018
#include<stdio.h> #include<stdlib.h> int main() { int a,b,c; scanf("%d%%%d%%%d",&a,&b,&c); printf("%d%%%d%%%d\n",a,b,c); return 0; } |