QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#665085#7799. Divisibility TrickCodedbyIlkinAC ✓0ms3744kbC++20562b2024-10-22 02:44:032024-10-22 02:44:03

Judging History

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

  • [2024-10-22 02:44:03]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:3744kb
  • [2024-10-22 02:44:03]
  • 提交

answer

#include <bits/stdc++.h>
typedef long long ll;
#include <iomanip>
#define pb push_back
#define popb pop_back
#define popf pop_front
#define pf push_front
#define p push
#define F first
#define S second
#define all(x) x.begin(), x.end()
using namespace std;
const int sz = 1e6;
const int mod = 1e9+7;

#define fastio ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);

#define MAX 51

void solve() {
    int d;
    cin >> d;

    for (int i = 1; i <= d; i++) {
        cout << d;
    }
}


int main() {
    fastio;
    solve();
}

这程序好像有点Bug,我给组数据试试?

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3604kb

input:

3

output:

333

result:

ok 

Test #2:

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

input:

13

output:

13131313131313131313131313

result:

ok 

Test #3:

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

input:

1

output:

1

result:

ok 

Test #4:

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

input:

2

output:

22

result:

ok 

Test #5:

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

input:

4

output:

4444

result:

ok 

Test #6:

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

input:

15

output:

151515151515151515151515151515

result:

ok 

Test #7:

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

input:

24

output:

242424242424242424242424242424242424242424242424

result:

ok 

Test #8:

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

input:

42

output:

424242424242424242424242424242424242424242424242424242424242424242424242424242424242

result:

ok 

Test #9:

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

input:

123

output:

123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123123...

result:

ok 

Test #10:

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

input:

239

output:

239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239239...

result:

ok 

Test #11:

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

input:

543

output:

543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543543...

result:

ok 

Test #12:

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

input:

666

output:

666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666...

result:

ok 

Test #13:

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

input:

777

output:

777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777...

result:

ok 

Test #14:

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

input:

888

output:

888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888...

result:

ok 

Test #15:

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

input:

1000

output:

100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000100010001000...

result:

ok 

Test #16:

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

input:

5

output:

55555

result:

ok 

Test #17:

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

input:

6

output:

666666

result:

ok 

Test #18:

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

input:

7

output:

7777777

result:

ok 

Test #19:

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

input:

8

output:

88888888

result:

ok 

Test #20:

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

input:

9

output:

999999999

result:

ok 

Test #21:

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

input:

10

output:

10101010101010101010

result:

ok 

Test #22:

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

input:

11

output:

1111111111111111111111

result:

ok 

Test #23:

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

input:

12

output:

121212121212121212121212

result:

ok 

Test #24:

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

input:

16

output:

16161616161616161616161616161616

result:

ok 

Test #25:

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

input:

18

output:

181818181818181818181818181818181818

result:

ok 

Test #26:

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

input:

20

output:

2020202020202020202020202020202020202020

result:

ok 

Test #27:

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

input:

22

output:

22222222222222222222222222222222222222222222

result:

ok 

Test #28:

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

input:

999

output:

999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999...

result:

ok 

Test #29:

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

input:

953

output:

953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953953...

result:

ok 

Test #30:

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

input:

971

output:

971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971971...

result:

ok 

Test #31:

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

input:

977

output:

977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977977...

result:

ok 

Test #32:

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

input:

983

output:

983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983983...

result:

ok 

Test #33:

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

input:

811

output:

811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811811...

result:

ok 

Test #34:

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

input:

821

output:

821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821821...

result:

ok 

Test #35:

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

input:

823

output:

823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823823...

result:

ok 

Test #36:

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

input:

857

output:

857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857857...

result:

ok 

Test #37:

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

input:

863

output:

863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863863...

result:

ok 

Test #38:

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

input:

887

output:

887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887887...

result:

ok 

Test #39:

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

input:

937

output:

937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937937...

result:

ok 

Test #40:

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

input:

941

output:

941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941941...

result:

ok 

Test #41:

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

input:

900

output:

900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900900...

result:

ok 

Test #42:

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

input:

800

output:

800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800800...

result:

ok 

Test #43:

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

input:

700

output:

700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700700...

result:

ok 

Test #44:

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

input:

100

output:

100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100100

result:

ok 

Test #45:

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

input:

985

output:

985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985985...

result:

ok 

Test #46:

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

input:

950

output:

950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950950...

result:

ok 

Test #47:

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

input:

998

output:

998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998998...

result:

ok 

Test #48:

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

input:

988

output:

988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988988...

result:

ok 

Extra Test:

score: 0
Extra Test Passed