Submission #18232438


Source Code Expand

Copy
#include <bits/stdc++.h>
using namespace std;
#include <atcoder/all>
using namespace atcoder;
#define rep(i,n) for (int i = 0; i < (n); i++)
#define REP(i,a,b) for(int i=(a);i<(b);i++)
#define all(v) begin(v),end(v)
#define fi first
#define se second
template<typename A, typename B> inline bool chmax(A &a, B b) { if (a<b) { a=b; return 1; } return 0; }
template<typename A, typename B> inline bool chmin(A &a, B b) { if (a>b) { a=b; return 1; } return 0; }
using ll = long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
constexpr ll inf = 2e9;
constexpr ll llinf = 9e18;
//constexpr ll mod = 998244353;
constexpr ll mod = 1000000007;
const double pai=acos(-1);

int main() {
    //cout<<fixed<<setprecision(15);
    int ans=0;
    rep(i,8){
        int t;cin>>t;
        chmax(ans,t);
    }
    cout<<ans<<endl;
}

Submission Info

Submission Time
Task A - Time Penalty
User mon56
Language C++ (GCC 9.2.1)
Score 100
Code Size 856 Byte
Status AC
Exec Time 8 ms
Memory 3660 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 10
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All sample_01.txt, sample_02.txt, sample_03.txt, subtask_1_1.txt, subtask_1_2.txt, subtask_1_3.txt, subtask_1_4.txt, subtask_1_5.txt, subtask_1_6.txt, subtask_1_7.txt
Case Name Status Exec Time Memory
sample_01.txt AC 8 ms 3520 KB
sample_02.txt AC 3 ms 3604 KB
sample_03.txt AC 6 ms 3448 KB
subtask_1_1.txt AC 2 ms 3520 KB
subtask_1_2.txt AC 2 ms 3660 KB
subtask_1_3.txt AC 3 ms 3452 KB
subtask_1_4.txt AC 3 ms 3524 KB
subtask_1_5.txt AC 2 ms 3564 KB
subtask_1_6.txt AC 2 ms 3660 KB
subtask_1_7.txt AC 2 ms 3628 KB