题解 | #出生日期输入输出#
出生日期输入输出
https://www.nowcoder.com/practice/4a4a9dd1edb6453ba4a0432319200743
#include <bits/stdc++.h>
using namespace std;
int main(){
string input;
cin >> input;
cout << "year=" << input[0] << input[1] << input[2] << input[3] << endl;
cout << "month=" << input[4] << input[5] << endl;
cout << "date=" << input[6] << input[7] << endl;
return 0;
}
查看5道真题和解析
