結果

問題 No.1497 Triangle
コンテスト
ユーザー tatyam
提出日時 2021-05-02 02:31:21
言語 C++17(gcc12)
(gcc 12.4.0 + boost 1.89.0)
コンパイル:
g++-12 -O2 -lm -std=c++17 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 1,001 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 6,440 ms
コンパイル使用メモリ 335,216 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-06-20 03:14:42
合計ジャッジ時間 8,258 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 4
other WA * 25 RE * 22
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include "testlib.h"
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pll = pair<ll, ll>;
#define all(a) begin(a), end(a)
#define space inf.readSpace()
#define endl inf.readEoln()
#define eof inf.readEof()
constexpr ll ten(int x){ return x ? ten(x - 1) * 10 : 1; }
tuple<ll> read(ll min, ll max){
    ll a = inf.readLong(min, max);
    endl;
    return tuple{a};
}
template<class... T> auto read(ll min, ll max, T... t){
    ll a = inf.readLong(min, max);
    space;
    return tuple_cat(tuple{a}, read(t...));
}
vector<ll> reads(ll N, ll min, ll max){
    auto a = inf.readLongs(N, min, max);
    endl;
    return a;
}
template<class... T> auto read_lines(ll N, T... t){
    vector<decltype(read(t...))> a;
    a.reserve(N);
    while(N--) a.push_back(read(t...));
    return a;
}

const ll N_MAX = 20, MAX = 1e3;
int main(){
    registerValidation();
    auto [N] = read(1, N_MAX);
    auto P = read_lines(N, 0, MAX, 0, MAX);
    ensure(set(all(P)).size() == N);
    eof;
}
0