QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#121049#4327. Šeširicsy20050 1ms3544kbC++141.7kb2023-07-07 14:51:472023-07-07 14:51:49

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-07-07 14:51:49]
  • 评测
  • 测评结果:0
  • 用时:1ms
  • 内存:3544kb
  • [2023-07-07 14:51:47]
  • 提交

answer

#include <iostream>
#include <algorithm>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<cstdlib>
#include<vector>
#include<iomanip>
#include<ctime>
#include<set>
#include<map>
#include<queue>
#include<stack>
#include<bitset>
#include<cassert>
#define sqr(x) ((x)*(x))
#define fz1(i,n) for ((i)=1;(i)<=(n);(i)++)
#define fd1(i,n) for ((i)=(n);(i)>=1;(i)--)
#define fz0g(i,n) for ((i)=0;(i)<=(n);(i)++)
#define fd0g(i,n) for ((i)=(n);(i)>=0;(i)--)
#define fz0k(i,n) for ((i)=0;(i)<(n);(i)++)
#define fd0k(i,n) for ((i)=(((long long)(n))-1);(i)>=0;(i)--)
#define fz(i,x,y) for ((i)=(x);(i)<=(y);(i)++)
#define fd(i,y,x) for ((i)=(y);(i)>=(x);(i)--)
#define fzin fz1(i,n)
#define fzim fz1(i,m)
#define fzjn fz1(j,n)
#define fzjm fz1(j,m)
#define ff(c,itr) for (__typeof((c).begin()) itr=(c).begin();itr!=(c).end();++itr)
#define pb push_back
#define mk make_pair
#define rdst(st,len){static char ss[len];scanf(" %s",ss);(st)=ss;}
#define spln(i,n) (i==n?'\n':' ')
#define fac_init(n){fac[0]=fac[1]=inv[1]=fi[0]=fi[1]=1;fz(i,2,n){fac[i]=1ll*fac[i-1]*i%mod;inv[i]=1ll*(mod-mod/i)*inv[mod%i]%mod;fi[i]=1ll*fi[i-1]*inv[i]%mod;}}
using namespace std;
typedef long long i64;
typedef long double f80;
typedef unsigned int u32;
typedef unsigned long long u64;
inline void read(int &x)
{
	char c;int f=1;
	while(!isdigit(c=getchar()))if(c=='-')f=-1;
	x=(c&15);while(isdigit(c=getchar()))x=(x<<1)+(x<<3)+(c&15);
	x*=f;
}
int main()
{
	puts("BCBCBCBCBCBCBCBCBCBCCBCBBCBCBCBC\n\
BBCCCCBBCCBBBBCCCCBBBBCCCCBBCCBB\n\
BBCBCCBCCCBCBBCBBBCBCCBCBBCBCCBC\n\
CCBCBBCBBBCBCCBCCCBCBBCBCCBCBBCB\n\
CBCBBCCBBCBCCBBCCBCBBCCBBCBCCBBC\n\
CCCCBBCCCCCCBBCCBBBBCCBBBBBBCCBB");
	return 0;
}

详细

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3380kb

input:

4

output:

BCBCBCBCBCBCBCBCBCBCCBCBBCBCBCBC
BBCCCCBBCCBBBBCCCCBBBBCCCCBBCCBB
BBCBCCBCCCBCBBCBBBCBCCBCBBCBCCBC
CCBCBBCBBBCBCCBCCCBCBBCBCCBCBBCB
CBCBBCCBBCBCCBBCCBCBBCCBBCBCCBBC
CCCCBBCCCCCCBBCCBBBBCCBBBBBBCCBB

result:

wrong answer the length of the string should be 8

Subtask #2:

score: 0
Wrong Answer

Test #2:

score: 0
Wrong Answer
time: 1ms
memory: 3356kb

input:

5

output:

BCBCBCBCBCBCBCBCBCBCCBCBBCBCBCBC
BBCCCCBBCCBBBBCCCCBBBBCCCCBBCCBB
BBCBCCBCCCBCBBCBBBCBCCBCBBCBCCBC
CCBCBBCBBBCBCCBCCCBCBBCBCCBCBBCB
CBCBBCCBBCBCCBBCCBCBBCCBBCBCCBBC
CCCCBBCCCCCCBBCCBBBBCCBBBBBBCCBB

result:

wrong answer the length of the string should be 16

Subtask #3:

score: 0
Wrong Answer

Test #3:

score: 0
Wrong Answer
time: 1ms
memory: 3376kb

input:

6

output:

BCBCBCBCBCBCBCBCBCBCCBCBBCBCBCBC
BBCCCCBBCCBBBBCCCCBBBBCCCCBBCCBB
BBCBCCBCCCBCBBCBBBCBCCBCBBCBCCBC
CCBCBBCBBBCBCCBCCCBCBBCBCCBCBBCB
CBCBBCCBBCBCCBBCCBCBBCCBBCBCCBBC
CCCCBBCCCCCCBBCCBBBBCCBBBBBBCCBB

result:

wrong answer your plan fails on CCCBBB

Subtask #4:

score: 0
Wrong Answer

Test #4:

score: 0
Wrong Answer
time: 1ms
memory: 3356kb

input:

7

output:

BCBCBCBCBCBCBCBCBCBCCBCBBCBCBCBC
BBCCCCBBCCBBBBCCCCBBBBCCCCBBCCBB
BBCBCCBCCCBCBBCBBBCBCCBCBBCBCCBC
CCBCBBCBBBCBCCBCCCBCBBCBCCBCBBCB
CBCBBCCBBCBCCBBCCBCBBCCBBCBCCBBC
CCCCBBCCCCCCBBCCBBBBCCBBBBBBCCBB

result:

wrong answer the length of the string should be 64

Subtask #5:

score: 0
Wrong Answer

Test #5:

score: 0
Wrong Answer
time: 0ms
memory: 3380kb

input:

8

output:

BCBCBCBCBCBCBCBCBCBCCBCBBCBCBCBC
BBCCCCBBCCBBBBCCCCBBBBCCCCBBCCBB
BBCBCCBCCCBCBBCBBBCBCCBCBBCBCCBC
CCBCBBCBBBCBCCBCCCBCBBCBCCBCBBCB
CBCBBCCBBCBCCBBCCBCBBCCBBCBCCBBC
CCCCBBCCCCCCBBCCBBBBCCBBBBBBCCBB

result:

wrong answer the length of the string should be 128

Subtask #6:

score: 0
Wrong Answer

Test #6:

score: 0
Wrong Answer
time: 1ms
memory: 3264kb

input:

9

output:

BCBCBCBCBCBCBCBCBCBCCBCBBCBCBCBC
BBCCCCBBCCBBBBCCCCBBBBCCCCBBCCBB
BBCBCCBCCCBCBBCBBBCBCCBCBBCBCCBC
CCBCBBCBBBCBCCBCCCBCBBCBCCBCBBCB
CBCBBCCBBCBCCBBCCBCBBCCBBCBCCBBC
CCCCBBCCCCCCBBCCBBBBCCBBBBBBCCBB

result:

wrong answer the length of the string should be 256

Subtask #7:

score: 0
Wrong Answer

Test #7:

score: 0
Wrong Answer
time: 1ms
memory: 3268kb

input:

10

output:

BCBCBCBCBCBCBCBCBCBCCBCBBCBCBCBC
BBCCCCBBCCBBBBCCCCBBBBCCCCBBCCBB
BBCBCCBCCCBCBBCBBBCBCCBCBBCBCCBC
CCBCBBCBBBCBCCBCCCBCBBCBCCBCBBCB
CBCBBCCBBCBCCBBCCBCBBCCBBCBCCBBC
CCCCBBCCCCCCBBCCBBBBCCBBBBBBCCBB

result:

wrong answer the length of the string should be 512

Subtask #8:

score: 0
Wrong Answer

Test #8:

score: 0
Wrong Answer
time: 1ms
memory: 3544kb

input:

11

output:

BCBCBCBCBCBCBCBCBCBCCBCBBCBCBCBC
BBCCCCBBCCBBBBCCCCBBBBCCCCBBCCBB
BBCBCCBCCCBCBBCBBBCBCCBCBBCBCCBC
CCBCBBCBBBCBCCBCCCBCBBCBCCBCBBCB
CBCBBCCBBCBCCBBCCBCBBCCBBCBCCBBC
CCCCBBCCCCCCBBCCBBBBCCBBBBBBCCBB

result:

wrong answer the length of the string should be 1024

Subtask #9:

score: 0
Wrong Answer

Test #9:

score: 0
Wrong Answer
time: 1ms
memory: 3408kb

input:

12

output:

BCBCBCBCBCBCBCBCBCBCCBCBBCBCBCBC
BBCCCCBBCCBBBBCCCCBBBBCCCCBBCCBB
BBCBCCBCCCBCBBCBBBCBCCBCBBCBCCBC
CCBCBBCBBBCBCCBCCCBCBBCBCCBCBBCB
CBCBBCCBBCBCCBBCCBCBBCCBBCBCCBBC
CCCCBBCCCCCCBBCCBBBBCCBBBBBBCCBB

result:

wrong answer the length of the string should be 2048

Subtask #10:

score: 0
Wrong Answer

Test #10:

score: 0
Wrong Answer
time: 1ms
memory: 3364kb

input:

13

output:

BCBCBCBCBCBCBCBCBCBCCBCBBCBCBCBC
BBCCCCBBCCBBBBCCCCBBBBCCCCBBCCBB
BBCBCCBCCCBCBBCBBBCBCCBCBBCBCCBC
CCBCBBCBBBCBCCBCCCBCBBCBCCBCBBCB
CBCBBCCBBCBCCBBCCBCBBCCBBCBCCBBC
CCCCBBCCCCCCBBCCBBBBCCBBBBBBCCBB

result:

wrong answer the length of the string should be 4096

Subtask #11:

score: 0
Wrong Answer

Test #11:

score: 0
Wrong Answer
time: 1ms
memory: 3376kb

input:

14

output:

BCBCBCBCBCBCBCBCBCBCCBCBBCBCBCBC
BBCCCCBBCCBBBBCCCCBBBBCCCCBBCCBB
BBCBCCBCCCBCBBCBBBCBCCBCBBCBCCBC
CCBCBBCBBBCBCCBCCCBCBBCBCCBCBBCB
CBCBBCCBBCBCCBBCCBCBBCCBBCBCCBBC
CCCCBBCCCCCCBBCCBBBBCCBBBBBBCCBB

result:

wrong answer the length of the string should be 8192

Subtask #12:

score: 0
Wrong Answer

Test #12:

score: 0
Wrong Answer
time: 1ms
memory: 3372kb

input:

15

output:

BCBCBCBCBCBCBCBCBCBCCBCBBCBCBCBC
BBCCCCBBCCBBBBCCCCBBBBCCCCBBCCBB
BBCBCCBCCCBCBBCBBBCBCCBCBBCBCCBC
CCBCBBCBBBCBCCBCCCBCBBCBCCBCBBCB
CBCBBCCBBCBCCBBCCBCBBCCBBCBCCBBC
CCCCBBCCCCCCBBCCBBBBCCBBBBBBCCBB

result:

wrong answer the length of the string should be 16384

Subtask #13:

score: 0
Wrong Answer

Test #13:

score: 0
Wrong Answer
time: 0ms
memory: 3340kb

input:

16

output:

BCBCBCBCBCBCBCBCBCBCCBCBBCBCBCBC
BBCCCCBBCCBBBBCCCCBBBBCCCCBBCCBB
BBCBCCBCCCBCBBCBBBCBCCBCBBCBCCBC
CCBCBBCBBBCBCCBCCCBCBBCBCCBCBBCB
CBCBBCCBBCBCCBBCCBCBBCCBBCBCCBBC
CCCCBBCCCCCCBBCCBBBBCCBBBBBBCCBB

result:

wrong answer the length of the string should be 32768

Subtask #14:

score: 0
Wrong Answer

Test #14:

score: 0
Wrong Answer
time: 1ms
memory: 3380kb

input:

17

output:

BCBCBCBCBCBCBCBCBCBCCBCBBCBCBCBC
BBCCCCBBCCBBBBCCCCBBBBCCCCBBCCBB
BBCBCCBCCCBCBBCBBBCBCCBCBBCBCCBC
CCBCBBCBBBCBCCBCCCBCBBCBCCBCBBCB
CBCBBCCBBCBCCBBCCBCBBCCBBCBCCBBC
CCCCBBCCCCCCBBCCBBBBCCBBBBBBCCBB

result:

wrong answer the length of the string should be 65536

Subtask #15:

score: 0
Wrong Answer

Test #15:

score: 0
Wrong Answer
time: 0ms
memory: 3476kb

input:

18

output:

BCBCBCBCBCBCBCBCBCBCCBCBBCBCBCBC
BBCCCCBBCCBBBBCCCCBBBBCCCCBBCCBB
BBCBCCBCCCBCBBCBBBCBCCBCBBCBCCBC
CCBCBBCBBBCBCCBCCCBCBBCBCCBCBBCB
CBCBBCCBBCBCCBBCCBCBBCCBBCBCCBBC
CCCCBBCCCCCCBBCCBBBBCCBBBBBBCCBB

result:

wrong answer the length of the string should be 131072