1
0
mirror of https://github.com/renbaoshuo/202401-programming-assignments.git synced 2024-10-18 08:13:38 +00:00

【实践课外】0.熟悉编程环境

https://pintia.cn/problem-sets/1843619170005204992
This commit is contained in:
Baoshuo Ren 2024-10-11 13:51:16 +08:00
parent 419164ec2b
commit 25e3fb1d7c
Failed to extract signature
4 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,16 @@
#include <iostream>
using std::cin;
using std::cout;
const char endl = '\n';
int main() {
std::ios::sync_with_stdio(false);
cin.tie(nullptr);
cout << "I'm gonna WIN!" << endl;
cout << "I'm gonna WIN!" << endl;
cout << "I'm gonna WIN!" << endl;
return 0;
}

View File

@ -0,0 +1,14 @@
#include <iostream>
using std::cin;
using std::cout;
const char endl = '\n';
int main() {
std::ios::sync_with_stdio(false);
cin.tie(nullptr);
cout << "math = 87, eng = 72, comp = 93, average = " << (87 + 72 + 93) / 3 << endl;
return 0;
}

View File

@ -0,0 +1,19 @@
#include <iostream>
using std::cin;
using std::cout;
const char endl = '\n';
int main() {
std::ios::sync_with_stdio(false);
cin.tie(nullptr);
int a, b;
cin >> a >> b;
cout << "C = " << (a + b) * 2 << endl;
cout << "S = " << a * b << endl;
return 0;
}

View File

@ -0,0 +1,19 @@
#include <algorithm>
#include <iostream>
using std::cin;
using std::cout;
const char endl = '\n';
int main() {
std::ios::sync_with_stdio(false);
cin.tie(nullptr);
int a, b, c;
cin >> a >> b >> c;
cout << std::max({a, b, c}) << endl;
return 0;
}