QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#311014#5236. Wersja dla profesjonalistów [A]c202302010 82ms3608kbC++14255b2024-01-21 20:53:472024-01-21 20:53:48

Judging History

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

  • [2024-01-21 20:53:48]
  • 评测
  • 测评结果:0
  • 用时:82ms
  • 内存:3608kb
  • [2024-01-21 20:53:47]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;

const int maxn=3e5+5;

int main() {
	ios::sync_with_stdio(false);
	cin.tie(0), cout.tie(0);
	int n; cin>>n;
	for(int i=n;i>1;i--) cout<<i<<'F'<<i-1<<"[BD]"<<"B";
	cout<<"FB"<<n<<"D\n";
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 1
Accepted
time: 1ms
memory: 3532kb

input:

1

output:

FB1D

result:

ok correct (length = 3)

Test #2:

score: 0
Accepted
time: 0ms
memory: 3556kb

input:

2

output:

2F1[BD]BFB2D

result:

ok correct (length = 13)

Test #3:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

4

output:

4F3[BD]B3F2[BD]B2F1[BD]BFB4D

result:

ok correct (length = 30)

Test #4:

score: 0
Accepted
time: 0ms
memory: 3608kb

input:

5

output:

5F4[BD]B4F3[BD]B3F2[BD]B2F1[BD]BFB5D

result:

ok correct (length = 43)

Test #5:

score: 0
Accepted
time: 0ms
memory: 3552kb

input:

6

output:

6F5[BD]B5F4[BD]B4F3[BD]B3F2[BD]B2F1[BD]BFB6D

result:

ok correct (length = 53)

Test #6:

score: 0
Accepted
time: 0ms
memory: 3528kb

input:

7

output:

7F6[BD]B6F5[BD]B5F4[BD]B4F3[BD]B3F2[BD]B2F1[BD]BFB7D

result:

ok correct (length = 53)

Test #7:

score: -1
Wrong Answer
time: 0ms
memory: 3608kb

input:

10

output:

10F9[BD]B9F8[BD]B8F7[BD]B7F6[BD]B6F5[BD]B5F4[BD]B4F3[BD]B3F2[BD]B2F1[BD]BFB10D

result:

wrong answer invalid output

Subtask #2:

score: 0
Wrong Answer

Test #16:

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

input:

320

output:

320F319[BD]B319F318[BD]B318F317[BD]B317F316[BD]B316F315[BD]B315F314[BD]B314F313[BD]B313F312[BD]B312F311[BD]B311F310[BD]B310F309[BD]B309F308[BD]B308F307[BD]B307F306[BD]B306F305[BD]B305F304[BD]B304F303[BD]B303F302[BD]B302F301[BD]B301F300[BD]B300F299[BD]B299F298[BD]B298F297[BD]B297F296[BD]B296F295[BD]B...

result:

wrong answer invalid output

Subtask #3:

score: 0
Wrong Answer

Test #28:

score: 0
Wrong Answer
time: 82ms
memory: 3532kb

input:

1000000

output:

1000000F999999[BD]B999999F999998[BD]B999998F999997[BD]B999997F999996[BD]B999996F999995[BD]B999995F999994[BD]B999994F999993[BD]B999993F999992[BD]B999992F999991[BD]B999991F999990[BD]B999990F999989[BD]B999989F999988[BD]B999988F999987[BD]B999987F999986[BD]B999986F999985[BD]B999985F999984[BD]B999984F9999...

result:

wrong answer the length of your output (17777788) exceeds the constraint (150000)

Subtask #4:

score: 0
Wrong Answer

Test #37:

score: 0
Wrong Answer
time: 82ms
memory: 3608kb

input:

999999

output:

999999F999998[BD]B999998F999997[BD]B999997F999996[BD]B999996F999995[BD]B999995F999994[BD]B999994F999993[BD]B999993F999992[BD]B999992F999991[BD]B999991F999990[BD]B999990F999989[BD]B999989F999988[BD]B999988F999987[BD]B999987F999986[BD]B999986F999985[BD]B999985F999984[BD]B999984F999983[BD]B999983F99998...

result:

wrong answer the length of your output (17777768) exceeds the constraint (150000)

Subtask #5:

score: 0
Output Limit Exceeded

Test #46:

score: 0
Output Limit Exceeded

input:

10000000000

output:

2147483647F2147483646[BD]B2147483646F2147483645[BD]B2147483645F2147483644[BD]B2147483644F2147483643[BD]B2147483643F2147483642[BD]B2147483642F2147483641[BD]B2147483641F2147483640[BD]B2147483640F2147483639[BD]B2147483639F2147483638[BD]B2147483638F2147483637[BD]B2147483637F2147483636[BD]B2147483636F214...

result:


Subtask #6:

score: 0
Time Limit Exceeded

Test #55:

score: 0
Time Limit Exceeded

input:

9999999999

output:

2147483647F2147483646[BD]B2147483646F2147483645[BD]B2147483645F2147483644[BD]B2147483644F2147483643[BD]B2147483643F2147483642[BD]B2147483642F2147483641[BD]B2147483641F2147483640[BD]B2147483640F2147483639[BD]B2147483639F2147483638[BD]B2147483638F2147483637[BD]B2147483637F2147483636[BD]B2147483636F214...

result:


Subtask #7:

score: 0
Output Limit Exceeded

Test #64:

score: 0
Output Limit Exceeded

input:

100000000000000

output:

2147483647F2147483646[BD]B2147483646F2147483645[BD]B2147483645F2147483644[BD]B2147483644F2147483643[BD]B2147483643F2147483642[BD]B2147483642F2147483641[BD]B2147483641F2147483640[BD]B2147483640F2147483639[BD]B2147483639F2147483638[BD]B2147483638F2147483637[BD]B2147483637F2147483636[BD]B2147483636F214...

result:


Subtask #8:

score: 0
Time Limit Exceeded

Test #84:

score: 0
Time Limit Exceeded

input:

99999999999999

output:

2147483647F2147483646[BD]B2147483646F2147483645[BD]B2147483645F2147483644[BD]B2147483644F2147483643[BD]B2147483643F2147483642[BD]B2147483642F2147483641[BD]B2147483641F2147483640[BD]B2147483640F2147483639[BD]B2147483639F2147483638[BD]B2147483638F2147483637[BD]B2147483637F2147483636[BD]B2147483636F214...

result:


Subtask #9:

score: 0
Time Limit Exceeded

Test #103:

score: 0
Time Limit Exceeded

input:

1000000000000000000

output:

2147483647F2147483646[BD]B2147483646F2147483645[BD]B2147483645F2147483644[BD]B2147483644F2147483643[BD]B2147483643F2147483642[BD]B2147483642F2147483641[BD]B2147483641F2147483640[BD]B2147483640F2147483639[BD]B2147483639F2147483638[BD]B2147483638F2147483637[BD]B2147483637F2147483636[BD]B2147483636F214...

result:


Subtask #10:

score: 0
Time Limit Exceeded

Test #128:

score: 0
Time Limit Exceeded

input:

999999999999999999

output:

2147483647F2147483646[BD]B2147483646F2147483645[BD]B2147483645F2147483644[BD]B2147483644F2147483643[BD]B2147483643F2147483642[BD]B2147483642F2147483641[BD]B2147483641F2147483640[BD]B2147483640F2147483639[BD]B2147483639F2147483638[BD]B2147483638F2147483637[BD]B2147483637F2147483636[BD]B2147483636F214...

result: