using namespace std; using ll = long long; using vi = vector<ll>;
void setIO(){ cout << fixed << setprecision(9); ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); if (fopen("test.in", "r")) { freopen("test.in", "r", stdin); freopen("test.out", "w", stdout); } }
void solve(){ }
int main() { setIO(); solve(); return 0; }
Chậm cũng được, các testcase chuẩn bị trước bỏ vô luôn trong file code, comment dưới hàm main.
Các bạn làm theo quy trình và mẫu (template).
Comments
include <bits/stdc++.h>
using namespace std; using ll = long long; using vi = vector<ll>;
void setIO(){ cout << fixed << setprecision(9); ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); if (fopen("test.in", "r")) { freopen("test.in", "r", stdin); freopen("test.out", "w", stdout); } }
void solve(){ }
int main() { setIO(); solve(); return 0; }
Chậm cũng được, các testcase chuẩn bị trước bỏ vô luôn trong file code, comment dưới hàm main.
Các bạn làm theo quy trình và mẫu (template).