QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#777829#9797. Who Am I?WillisAC ✓1ms3644kbC++142.0kb2024-11-24 10:09:092024-11-24 10:09:09

Judging History

你现在查看的是最新测评结果

  • [2024-11-24 10:09:09]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3644kb
  • [2024-11-24 10:09:09]
  • 提交

answer

#ifdef local
#pragma GCC optimize(1)
#pragma GCC optimize(2)
#pragma GCC optimize(3)
#endif
// #pragma comment(linker, "/STACK:102400000,102400000")

#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <chrono>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>

#ifndef local
#define endl '\n'
#endif

#define pb emplace_back
#define fi first
#define se second
#define rep(i, l, r) for (long long i = l; i <= r; i++)
#define IOS ios::sync_with_stdio(0), cin.tie(0), cout.tie(0)
#define mem(a, x) memset(a, x, sizeof(a))
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
typedef double db;
typedef pair<int, int> P;
typedef pair<P, int> PP;
const double pi = acos(-1);
typedef __int128_t int128;
const db eps = 1e-9;
std::mt19937_64 rng(time(0));
ll my_random(ll l, ll r)
{

    uniform_int_distribution<int> range(l, r);
    return range(rng);
}
void __()
{
#ifdef local
    system("pause");
#endif
}
ll qp(ll a, ll b, ll mod)
{
    ll ans = 1;
    while (b)
    {
        if (b & 1)
            ans = ans * a % mod;
        a = a * a % mod;
        b >>= 1;
    }
    return ans;
}

const int maxn = 300 + 10;
const ll mod = 1e9 + 7;
string s[] = {
    ".##...#.....##.",
    ".###.####..###.",
    "#.#.#######.#.#",
    "#.#..#####..#.#",
    "#..#...###.#..#",
    "#.###...#.###.#",
    ".#.###.#.###.#.",
    ".#....###....#.",
    ".#..#..#..#..#.",
    "..#.#.....#.#..",
    ".#.....#.....#.",
    "..###....#..#..",
    ".##.##.##..#.#.",
    ".#.#.#..####...",
    ".#...#.#....###",
};
int main()
{
    IOS;
    for (int i = 0; i < 15; i++)
        cout << s[i] << endl;
    __();
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3644kb

input:



output:

.##...#.....##.
.###.####..###.
#.#.#######.#.#
#.#..#####..#.#
#..#...###.#..#
#.###...#.###.#
.#.###.#.###.#.
.#....###....#.
.#..#..#..#..#.
..#.#.....#.#..
.#.....#.....#.
..###....#..#..
.##.##.##..#.#.
.#.#.#..####...
.#...#.#....###

result:

ok match puzzle 3 sulfox