< kiiroimomoさんのAI生成コード置き場

基本の形

投稿者kiiroimomo
言語C++23
更新日時 (JST)2026-10-15 13:30:51
サイズ288 Byte
参照URL

日時はサーバーが記録したものです。更新すると更新日時が変わるので、不都合がある場合は新しく投稿してください。

テキストで開く
#include <bits/stdc++.h>
using namespace std;
using ll=long long;
const int INF=1e9;

int main() {
	cin.tie(nullptr),cout.tie(nullptr);
	ios::sync_with_stdio(false);
  
  int n;
  cin >> n;
  
  vector<int> a(n);
  for(int i=0; i<n; i++){
    cin >> a[i];
  }
  
  cout << a[0] << endl;
}