Skip to content

Instantly share code, notes, and snippets.

View tch69's full-sized avatar

Phạm Thành An tch69

  • Đăk Lăk, Việt Nam
  • 05:02 (UTC +07:00)
View GitHub Profile
@tch69
tch69 / tmp.cpp
Created November 14, 2024 14:33
Kim tự tháp bị lỏ
#include <iostream>
#include <algorithm>
using namespace std;
int
main(void)
{
int n; cin >> n;
int a[n][2*n - 1];
fill(a[0], a[0] + n*(2*n - 1), 0);