题解 | #学生基本信息输入输出#
学生基本信息输入输出
https://www.nowcoder.com/practice/58b6a69b4bf943b49d2cd3c15770b9fd
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int a;
float b, c, d;
scanf("%d;%f,%f,%f", &a, &b, &c, &d);
printf("The each subject score of No. %d is %.2f, %.2f, %.2f.",a,b,c,d);
}
// 64 位输出请用 printf("%lld")
查看12道真题和解析