Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
198 | Benson | 朋友信息 | C++ | Wrong Answer | 0 MS | 260 KB | 534 | 2022-07-22 09:17:57 |
#include<iostream> #include<iomanip> using namespace std; struct student{ string name; string grade; int chinese; int math; int english; double average; }; int main(){ student stu={"张三","六年级",88,92,91,90.33}; cout<<"named:"<<stu.name<<endl; cout<<"grade:"<<stu.grade<<endl; cout<<"chinese:"<<stu.chinese<<endl; cout<<"math:"<<stu.math<<endl; cout<<"english:"<<stu.english<<endl; cout<<"average:"<<fixed<<setprecision(2)<<stu.average<<endl; }
------Input------
4 lele 19990302 13685930581 lema 19990302 13592039485 Kity 20010912 1872749501 Joy 19990302 18792049590
------Answer-----
Joy 19990302 18792049590 lele 19990302 13685930581 lema 19990302 13592039485 Kity 20010912 1872749501
------Your output-----
named:张三 grade:六年级 chinese:88 math:92 english:91 average:90.33