提出 #75619287


ソースコード 拡げる

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vll = vector<ll>;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
#define all(x) (x).begin(), (x).end()
#define pb push_back

template<class T> inline bool chmax(T& a, T b) { return a < b ? a = b, 1 : 0; }
template<class T> inline bool chmin(T& a, T b) { return a > b ? a = b, 1 : 0; }

const int MOD = 1e9 + 7;

void solve() {
    int n;cin>>n;
    vector<vector<int>> adj(n);
    for(int i=0;i<n;i++){
        int l;cin>>l;
        for(int j=0;j<l;j++){
            int x;cin>>x;
            adj[i].push_back(x);
        }
    }
    int x,y;cin>>x>>y;
    cout<<adj[--x][--y];
    
}

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    int tt = 1;
    //cin>>tt;
    while (tt--) {
        solve();
    }

    return 0;
}

提出情報

提出日時
問題 B - Arrays
ユーザ lavi3
言語 C++23 (GCC 15.2.0)
得点 200
コード長 892 Byte
結果 AC
実行時間 17 ms
メモリ 14288 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 3
AC × 11
セット名 テストケース
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_corner_00.txt, 01_corner_01.txt, 01_corner_02.txt, 01_corner_03.txt, 01_corner_04.txt, 02_random_00.txt, 02_random_01.txt, 02_random_02.txt
ケース名 結果 実行時間 メモリ
00_sample_00.txt AC 2 ms 3624 KiB
00_sample_01.txt AC 1 ms 3476 KiB
00_sample_02.txt AC 1 ms 3460 KiB
01_corner_00.txt AC 1 ms 3464 KiB
01_corner_01.txt AC 6 ms 4536 KiB
01_corner_02.txt AC 17 ms 14288 KiB
01_corner_03.txt AC 11 ms 9184 KiB
01_corner_04.txt AC 11 ms 9368 KiB
02_random_00.txt AC 1 ms 3476 KiB
02_random_01.txt AC 1 ms 3608 KiB
02_random_02.txt AC 1 ms 3752 KiB