ログイン
新規登録
AtsuoCoder Petrozavodsk Contest 001
読込中…
Home
Tasks
Clar
Submissions
Standings
提出 63e2645e-0756-4adf-9096-27a914910f98
コード
#include <iostream> // cout, endl, cin #include <string> // string, to_string, stoi #include <vector> // vector #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound #include <utility> // pair, make_pair #include <tuple> // tuple, make_tuple #include <cstdint> // int64_t, int*_t #include <cstdio> // printf #include <map> // map #include <queue> // queue, priority_queue #include <set> // set #include <stack> // stack #include <deque> // deque #include <unordered_map> // unordered_map #include <unordered_set> // unordered_set #include <bitset> // bitset #include <cctype> // isupper, islower, isdigit, toupper, tolower #include <cmath> // pow, sqrt #include <iomanip> // setprecision #define int int64_t #define double long double using namespace std; signed main() { //cout << fixed << setprecision(10); int n; cin >> n; vector<int> vec(n); for (int i = 0; i < n; i++) cin >> vec.at(i); cout << max(vec.at(0), vec.at(1)) << endl; return 0; }
結果
問題
点数
言語
結果
実行時間
メモリ
H - Magical Number Stabilizer
4
C++
WA
2 ms
3828 KiB