QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#259204 | #6418. Ah, It's Yesterday Once More | hos_lyric | AC ✓ | 0ms | 3832kb | C++14 | 1.9kb | 2023-11-20 18:37:23 | 2023-11-20 18:37:24 |
Judging History
answer
#include <cassert>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <functional>
#include <iostream>
#include <limits>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
using namespace std;
using Int = long long;
template <class T1, class T2> ostream &operator<<(ostream &os, const pair<T1, T2> &a) { return os << "(" << a.first << ", " << a.second << ")"; };
template <class T> ostream &operator<<(ostream &os, const vector<T> &as) { const int sz = as.size(); os << "["; for (int i = 0; i < sz; ++i) { if (i >= 256) { os << ", ..."; break; } if (i > 0) { os << ", "; } os << as[i]; } return os << "]"; }
template <class T> void pv(T a, T b) { for (T i = a; i != b; ++i) cerr << *i << " "; cerr << endl; }
template <class T> bool chmin(T &t, const T &f) { if (t > f) { t = f; return true; } return false; }
template <class T> bool chmax(T &t, const T &f) { if (t < f) { t = f; return true; } return false; }
#define COLOR(s) ("\x1b[" s "m")
constexpr int N = 20;
constexpr char ANS[N][N + 1] = {
"11101111101111101111",
"10110010110010110010",
"11011011011011011011",
"01101101101101101101",
"10110110110110110111",
"10011011011011011001",
"11101101101101101101",
"10110110110110110110",
"11011011011011011011",
"01101101101101101101",
"10110110110110110111",
"10011011011011011001",
"11101101101101101101",
"10110110110110110110",
"11011011011011011011",
"01101101101101101101",
"10110110110110110111",
"10011011011011011001",
"11101001101001101001",
"10111110111110111110",
};
int main() {
printf("%d %d\n", N, N);
for (int x = 0; x < N; ++x) {
puts(ANS[x]);
}
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3832kb
input:
output:
20 20 11101111101111101111 10110010110010110010 11011011011011011011 01101101101101101101 10110110110110110111 10011011011011011001 11101101101101101101 10110110110110110110 11011011011011011011 01101101101101101101 10110110110110110111 10011011011011011001 11101101101101101101 10110110110110110110 ...
result:
ok 159 successful hack.