7.30

发布时间 2023-07-30 21:25:04作者: 徐星凯

快开学了,今天开始按照老师的要求整理pta上的编程题,可多了。

#include<iostream>
using namespace std;
int main(){
    cout<<"Talk is cheap. Show me the code."<<endl;
    return 0;
}
#include<iostream>
using namespace std;
int main(){
    int a;
    int b;
    int c;//输入长宽高
    cin>>a>>b>>c;
    cout<<a*b*c<<endl;
    return 0;
}
#include <iostream>
using namespace std;
int main()
{
    double a, b, c;
    int t;
    cin >> a >> t >> b;
    if (t)
        c = a * 1.26;
    else
        c = a * 2.455;
    printf("%.2f %s", c, (c > b ? "T_T" : "^_^"));
    return 0;
}