hwi experience

hwi experience

skibdi ok

grheh

i just did eisin2π+1=0e^{i\sin{2\pi}}+1=0 and got 1=eiπ1=-e^{-i\pi}

The Cauchy-Schwarz Inequality (k=1nakbk)2(k=1nak2)(k=1nbk2)\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)
Solution
solution.cpp
#include <bits/stdc++.h>
 
void solve() {
  int n;
  std::cin >> n; std::vector<int> a(n);
 
  for (auto &i : a)
    std::cin >> i;
 
  std::sort(a.begin(), a.end());
 
  if (n == 2) {
    std::cout << a[0] << " " << a[1] << "\n";
    return;
  }
 
  int posy = -1, diff = std::numeric_limits<int>::max();
  for (int i = 0; i < n - 1; ++i) {
    if (a[i + 1] - a[i] < diff) {
      posy = i;
      diff = a[i + 1] - a[i];
    }
  }
  std::cout << a[posy] << " ";
  for (int i = posy + 2; i < n; ++i)
    std::cout << a[i] << " ";
  for (int i = 0; i < posy; ++i)
    std::cout << a[i] << " ";
  std::cout << a[posy + 1] <<Code "\n";
}
 
int main(void) {
 std::ios::sync_with_stdio(false);
 std::cin.tie(nullptr);
 int t;
 std::cin >> t;
 while (t--) {
   solve();
 }
}

Free my niggas they ain't done nothing wrong!

Okaeri Alice Cover Vol2
idk
schema.sql
SELECT * FROM USER ORDER BY CREATED_AT DESC LIMIT 10; 
Solution
solution.cpp
#include <bits/stdc++.h>
 
void solve() {
  int n;
  std::cin >> n; std::vector<int> a(n);
 
  for (auto &i : a)
    std::cin >> i;
 
  std::sort(a.begin(), a.end());
 
  if (n == 2) {
    std::cout << a[0] << " " << a[1] << "\n";
    return;
  }
 
  int posy = -1, diff = std::numeric_limits<int>::max();
  for (int i = 0; i < n - 1; ++i) {
    if (a[i + 1] - a[i] < diff) {
      posy = i;
      diff = a[i + 1] - a[i];
    }
  }
  std::cout << a[posy] << " ";
  for (int i = posy + 2; i < n; ++i)
    std::cout << a[i] << " ";
  for (int i = 0; i < posy; ++i)
    std::cout << a[i] << " ";
  std::cout << a[posy + 1] <<Code "\n";
}
 
int main(void) {
 std::ios::sync_with_stdio(false);
 std::cin.tie(nullptr);
 int t;
 std::cin >> t;
 while (t--) {
   solve();
 }
}
  1. First ordered list item
  2. Another item ÅÅ* Unordered sub-list.
  3. Actual numbers don't matter, just that it's a number ÅÅ1. Ordered sub-list
  4. And another item.

ÅÅÅYou can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown).

ÅÅÅTo have a line break without a paragraph, you will need to use two trailing spaces.ÅÅ ÅÅÅNote that this line is separate, but within the same paragraph.ÅÅ ÅÅÅ(This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.)

  • Unordered list can use asterisks
  • Or minuses
  • Or pluses

I'm an inline-style link

I'm an inline-style link with title

[I'm a reference-style link][Arbitrary case-insensitive reference text]

I'm a relative reference to a repository file

[You can use numbers for reference-style link definitions][1]