QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#450888#5564. Lots of LandEbiarat#AC ✓1ms3712kbC++201.8kb2024-06-22 19:10:462024-06-22 19:10:47

Judging History

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

  • [2024-06-22 19:10:47]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3712kb
  • [2024-06-22 19:10:46]
  • 提交

answer

#include <iostream>
#include <string>
#include <set>
#include <map>
#include <algorithm>
#include <iomanip>
#include <vector>
#include <cmath>
#include <queue>
#include <sstream>
#include <ctime>
#include <iterator>
#include <string.h>
#include <stack>
#include <unordered_set>
#include <unordered_map>
#include <bitset>
#include <fstream>
#include <assert.h>
#include <numeric>
#include <complex>
#include <random>
#include <utility>



#define IOS ios_base::sync_with_stdio(0),cin.tie(0), cout.tie(0);
#define FOR(i,a,b) for(int i = (a); i < (b); i++)
#define RFOR(i,a,b) for(int i = (a) - 1; i>=(b);i--)
#define rep(i,n) FOR(i,0,n)
#define PB push_back
#define SZ(a) (int)a.size()
#define ALL(a) a.begin(), a.end()
#define VI vector<int>
#define PII pair<int,int>
#define PLL pair<long long,long long>
#define VL vector<long long >
#define FILL(a, value) memset(a, value, sizeof(a))
const int nax = 2 * (int)1e5 + 147;
 
using namespace std;
 
const int MOD = 998244353;
const int INF = 1e9 +47 ;
const long long LINF = (long long)1e18 + 4747;
 
typedef long long LL;
const double EPS=1e-6;

long long dp[5 * (int)1e5 + 47];
vector<int> vec[5 * (int)1e5 + 47];
long long p[5 * (int)1e5 + 47];
int gcd(int a, int b) {
    return b ? gcd(b, a % b) : a;
}
int main() {
    int n,m,k;
    cin >> n >> m >> k;
    if((n * m) % k !=0 ) {
        cout << "impossible\n";
        return 0;
    }
    int sq = n * m / k;
    
    int a = gcd(n,sq);
    int b =  sq / a ;
    int cc = 0 ;
    for(int i =0;i < n;i +=a) {
        for(int k = 0;k < a;k ++ ) {
            for(int j = 0;j < m;j ++ ) {
                cout << (char)('A' + (j / b) + cc);
            }
            cout << '\n';
        }
        cc+= m / b;
    }
}

詳細信息

Test #1:

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

input:

4 4 4

output:

ABCD
ABCD
ABCD
ABCD

result:

ok correct

Test #2:

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

input:

6 15 9

output:

AAAAABBBBBCCCCC
AAAAABBBBBCCCCC
DDDDDEEEEEFFFFF
DDDDDEEEEEFFFFF
GGGGGHHHHHIIIII
GGGGGHHHHHIIIII

result:

ok correct

Test #3:

score: 0
Accepted
time: 1ms
memory: 3568kb

input:

100 100 26

output:

impossible

result:

ok correct

Test #4:

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

input:

1 1 1

output:

A

result:

ok correct

Test #5:

score: 0
Accepted
time: 1ms
memory: 3632kb

input:

1 100 25

output:

AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJKKKKLLLLMMMMNNNNOOOOPPPPQQQQRRRRSSSSTTTTUUUUVVVVWWWWXXXXYYYY

result:

ok correct

Test #6:

score: 0
Accepted
time: 1ms
memory: 3628kb

input:

100 1 20

output:

A
A
A
A
A
B
B
B
B
B
C
C
C
C
C
D
D
D
D
D
E
E
E
E
E
F
F
F
F
F
G
G
G
G
G
H
H
H
H
H
I
I
I
I
I
J
J
J
J
J
K
K
K
K
K
L
L
L
L
L
M
M
M
M
M
N
N
N
N
N
O
O
O
O
O
P
P
P
P
P
Q
Q
Q
Q
Q
R
R
R
R
R
S
S
S
S
S
T
T
T
T
T

result:

ok correct

Test #7:

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

input:

99 98 1

output:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAA...

result:

ok correct

Test #8:

score: 0
Accepted
time: 1ms
memory: 3508kb

input:

100 100 25

output:

AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJKKKKLLLLMMMMNNNNOOOOPPPPQQQQRRRRSSSSTTTTUUUUVVVVWWWWXXXXYYYY
AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJKKKKLLLLMMMMNNNNOOOOPPPPQQQQRRRRSSSSTTTTUUUUVVVVWWWWXXXXYYYY
AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJKKKKLLLLMMMMNNNNOOOOPPPPQQQQRRRRSSSSTTTTUUUUVVVVWWWWXXXXYY...

result:

ok correct

Test #9:

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

input:

100 91 26

output:

AAAAAAABBBBBBBCCCCCCCDDDDDDDEEEEEEEFFFFFFFGGGGGGGHHHHHHHIIIIIIIJJJJJJJKKKKKKKLLLLLLLMMMMMMM
AAAAAAABBBBBBBCCCCCCCDDDDDDDEEEEEEEFFFFFFFGGGGGGGHHHHHHHIIIIIIIJJJJJJJKKKKKKKLLLLLLLMMMMMMM
AAAAAAABBBBBBBCCCCCCCDDDDDDDEEEEEEEFFFFFFFGGGGGGGHHHHHHHIIIIIIIJJJJJJJKKKKKKKLLLLLLLMMMMMMM
AAAAAAABBBBBBBCCCCCCCDDD...

result:

ok correct

Test #10:

score: 0
Accepted
time: 1ms
memory: 3624kb

input:

96 96 24

output:

AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJKKKKLLLLMMMMNNNNOOOOPPPPQQQQRRRRSSSSTTTTUUUUVVVVWWWWXXXX
AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJKKKKLLLLMMMMNNNNOOOOPPPPQQQQRRRRSSSSTTTTUUUUVVVVWWWWXXXX
AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJKKKKLLLLMMMMNNNNOOOOPPPPQQQQRRRRSSSSTTTTUUUUVVVVWWWWXXXX
AAAABBBBC...

result:

ok correct

Test #11:

score: 0
Accepted
time: 1ms
memory: 3640kb

input:

12 60 16

output:

AAAAAAAAAAAAAAABBBBBBBBBBBBBBBCCCCCCCCCCCCCCCDDDDDDDDDDDDDDD
AAAAAAAAAAAAAAABBBBBBBBBBBBBBBCCCCCCCCCCCCCCCDDDDDDDDDDDDDDD
AAAAAAAAAAAAAAABBBBBBBBBBBBBBBCCCCCCCCCCCCCCCDDDDDDDDDDDDDDD
EEEEEEEEEEEEEEEFFFFFFFFFFFFFFFGGGGGGGGGGGGGGGHHHHHHHHHHHHHHH
EEEEEEEEEEEEEEEFFFFFFFFFFFFFFFGGGGGGGGGGGGGGGHHHHHHHHHHH...

result:

ok correct

Test #12:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

77 8 22

output:

AAAABBBB
AAAABBBB
AAAABBBB
AAAABBBB
AAAABBBB
AAAABBBB
AAAABBBB
CCCCDDDD
CCCCDDDD
CCCCDDDD
CCCCDDDD
CCCCDDDD
CCCCDDDD
CCCCDDDD
EEEEFFFF
EEEEFFFF
EEEEFFFF
EEEEFFFF
EEEEFFFF
EEEEFFFF
EEEEFFFF
GGGGHHHH
GGGGHHHH
GGGGHHHH
GGGGHHHH
GGGGHHHH
GGGGHHHH
GGGGHHHH
IIIIJJJJ
IIIIJJJJ
IIIIJJJJ
IIIIJJJJ
IIIIJJJJ
III...

result:

ok correct

Test #13:

score: 0
Accepted
time: 1ms
memory: 3640kb

input:

24 50 20

output:

AAAAABBBBBCCCCCDDDDDEEEEEFFFFFGGGGGHHHHHIIIIIJJJJJ
AAAAABBBBBCCCCCDDDDDEEEEEFFFFFGGGGGHHHHHIIIIIJJJJJ
AAAAABBBBBCCCCCDDDDDEEEEEFFFFFGGGGGHHHHHIIIIIJJJJJ
AAAAABBBBBCCCCCDDDDDEEEEEFFFFFGGGGGHHHHHIIIIIJJJJJ
AAAAABBBBBCCCCCDDDDDEEEEEFFFFFGGGGGHHHHHIIIIIJJJJJ
AAAAABBBBBCCCCCDDDDDEEEEEFFFFFGGGGGHHHHHIIIII...

result:

ok correct

Test #14:

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

input:

60 7 14

output:

ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
ABCDEFG
HIJKLMN
HIJKLMN
HIJKLMN
HIJKLMN
HIJKLMN
HIJKLMN
HIJKLMN
HIJK...

result:

ok correct

Test #15:

score: 0
Accepted
time: 1ms
memory: 3628kb

input:

14 63 18

output:

AAAAAAABBBBBBBCCCCCCCDDDDDDDEEEEEEEFFFFFFFGGGGGGGHHHHHHHIIIIIII
AAAAAAABBBBBBBCCCCCCCDDDDDDDEEEEEEEFFFFFFFGGGGGGGHHHHHHHIIIIIII
AAAAAAABBBBBBBCCCCCCCDDDDDDDEEEEEEEFFFFFFFGGGGGGGHHHHHHHIIIIIII
AAAAAAABBBBBBBCCCCCCCDDDDDDDEEEEEEEFFFFFFFGGGGGGGHHHHHHHIIIIIII
AAAAAAABBBBBBBCCCCCCCDDDDDDDEEEEEEEFFFFFFFGG...

result:

ok correct

Test #16:

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

input:

10 56 20

output:

AAAAAAAAAAAAAABBBBBBBBBBBBBBCCCCCCCCCCCCCCDDDDDDDDDDDDDD
AAAAAAAAAAAAAABBBBBBBBBBBBBBCCCCCCCCCCCCCCDDDDDDDDDDDDDD
EEEEEEEEEEEEEEFFFFFFFFFFFFFFGGGGGGGGGGGGGGHHHHHHHHHHHHHH
EEEEEEEEEEEEEEFFFFFFFFFFFFFFGGGGGGGGGGGGGGHHHHHHHHHHHHHH
IIIIIIIIIIIIIIJJJJJJJJJJJJJJKKKKKKKKKKKKKKLLLLLLLLLLLLLL
IIIIIIIIIIIIIIJ...

result:

ok correct

Test #17:

score: 0
Accepted
time: 1ms
memory: 3632kb

input:

76 100 8

output:

AAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDDDDDDDD
AAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDDDDDDDD
AAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDDDDDD...

result:

ok correct

Test #18:

score: 0
Accepted
time: 1ms
memory: 3632kb

input:

88 6 24

output:

ABCDEF
ABCDEF
ABCDEF
ABCDEF
ABCDEF
ABCDEF
ABCDEF
ABCDEF
ABCDEF
ABCDEF
ABCDEF
ABCDEF
ABCDEF
ABCDEF
ABCDEF
ABCDEF
ABCDEF
ABCDEF
ABCDEF
ABCDEF
ABCDEF
ABCDEF
GHIJKL
GHIJKL
GHIJKL
GHIJKL
GHIJKL
GHIJKL
GHIJKL
GHIJKL
GHIJKL
GHIJKL
GHIJKL
GHIJKL
GHIJKL
GHIJKL
GHIJKL
GHIJKL
GHIJKL
GHIJKL
GHIJKL
GHIJKL
GHIJKL...

result:

ok correct

Test #19:

score: 0
Accepted
time: 1ms
memory: 3512kb

input:

42 24 18

output:

AAAABBBBCCCCDDDDEEEEFFFF
AAAABBBBCCCCDDDDEEEEFFFF
AAAABBBBCCCCDDDDEEEEFFFF
AAAABBBBCCCCDDDDEEEEFFFF
AAAABBBBCCCCDDDDEEEEFFFF
AAAABBBBCCCCDDDDEEEEFFFF
AAAABBBBCCCCDDDDEEEEFFFF
AAAABBBBCCCCDDDDEEEEFFFF
AAAABBBBCCCCDDDDEEEEFFFF
AAAABBBBCCCCDDDDEEEEFFFF
AAAABBBBCCCCDDDDEEEEFFFF
AAAABBBBCCCCDDDDEEEEFFFF
...

result:

ok correct

Test #20:

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

input:

8 87 6

output:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
AAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
AAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
AAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBB...

result:

ok correct

Test #21:

score: 0
Accepted
time: 1ms
memory: 3636kb

input:

62 18 1

output:

AAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAA...

result:

ok correct

Test #22:

score: 0
Accepted
time: 1ms
memory: 3640kb

input:

52 9 2

output:

AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
AAAAAAAAA
BBBBBBBBB
BBBBBBBBB
BBBBBBBBB
BBBBBBBBB
...

result:

ok correct

Test #23:

score: 0
Accepted
time: 1ms
memory: 3632kb

input:

57 62 3

output:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

result:

ok correct

Test #24:

score: 0
Accepted
time: 1ms
memory: 3512kb

input:

53 4 4

output:

ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD
ABCD

result:

ok correct

Test #25:

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

input:

28 95 5

output:

AAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDDEEEEEEEEEEEEEEEEEEE
AAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDDEEEEEEEEEEEEEEEEEEE
AAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDDEEEEEEEEEEEEEEEEEEE
AAAAAAAAAAAA...

result:

ok correct

Test #26:

score: 0
Accepted
time: 1ms
memory: 3696kb

input:

12 76 6

output:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB...

result:

ok correct

Test #27:

score: 0
Accepted
time: 1ms
memory: 3512kb

input:

91 83 7

output:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...

result:

ok correct

Test #28:

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

input:

78 16 8

output:

AABBCCDDEEFFGGHH
AABBCCDDEEFFGGHH
AABBCCDDEEFFGGHH
AABBCCDDEEFFGGHH
AABBCCDDEEFFGGHH
AABBCCDDEEFFGGHH
AABBCCDDEEFFGGHH
AABBCCDDEEFFGGHH
AABBCCDDEEFFGGHH
AABBCCDDEEFFGGHH
AABBCCDDEEFFGGHH
AABBCCDDEEFFGGHH
AABBCCDDEEFFGGHH
AABBCCDDEEFFGGHH
AABBCCDDEEFFGGHH
AABBCCDDEEFFGGHH
AABBCCDDEEFFGGHH
AABBCCDDEEF...

result:

ok correct

Test #29:

score: 0
Accepted
time: 1ms
memory: 3568kb

input:

27 90 9

output:

AAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDDEEEEEEEEEEFFFFFFFFFFGGGGGGGGGGHHHHHHHHHHIIIIIIIIII
AAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDDEEEEEEEEEEFFFFFFFFFFGGGGGGGGGGHHHHHHHHHHIIIIIIIIII
AAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDDEEEEEEEEEEFFFFFFFFFFGGGGGGGGGGHHHHHHHHHHIIIIIIIIII
AAAAAAAAAABBBBBBBBBBCCCCCCC...

result:

ok correct

Test #30:

score: 0
Accepted
time: 1ms
memory: 3624kb

input:

30 23 10

output:

AAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAA
BBBBBBBBBBBBBBBBBBBBBBB
BBBBBBBBBBBBBBBBBBBBBBB
BBBBBBBBBBBBBBBBBBBBBBB
CCCCCCCCCCCCCCCCCCCCCCC
CCCCCCCCCCCCCCCCCCCCCCC
CCCCCCCCCCCCCCCCCCCCCCC
DDDDDDDDDDDDDDDDDDDDDDD
DDDDDDDDDDDDDDDDDDDDDDD
DDDDDDDDDDDDDDDDDDDDDDD
EEEEEEEEEEEE...

result:

ok correct

Test #31:

score: 0
Accepted
time: 1ms
memory: 3516kb

input:

6 14 11

output:

impossible

result:

ok correct

Test #32:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

85 99 24

output:

impossible

result:

ok correct

Test #33:

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

input:

64 74 18

output:

impossible

result:

ok correct

Test #34:

score: 0
Accepted
time: 1ms
memory: 3636kb

input:

98 78 16

output:

impossible

result:

ok correct

Test #35:

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

input:

11 33 24

output:

impossible

result:

ok correct

Test #36:

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

input:

47 5 8

output:

impossible

result:

ok correct

Test #37:

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

input:

75 6 23

output:

impossible

result:

ok correct

Test #38:

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

input:

15 69 11

output:

impossible

result:

ok correct

Test #39:

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

input:

7 74 4

output:

impossible

result:

ok correct

Test #40:

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

input:

58 30 11

output:

impossible

result:

ok correct

Test #41:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

48 94 6

output:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
AAAAAAAAAAAAAAA...

result:

ok correct

Test #42:

score: 0
Accepted
time: 1ms
memory: 3692kb

input:

45 92 23

output:

AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJKKKKLLLLMMMMNNNNOOOOPPPPQQQQRRRRSSSSTTTTUUUUVVVVWWWW
AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJKKKKLLLLMMMMNNNNOOOOPPPPQQQQRRRRSSSSTTTTUUUUVVVVWWWW
AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJKKKKLLLLMMMMNNNNOOOOPPPPQQQQRRRRSSSSTTTTUUUUVVVVWWWW
AAAABBBBCCCCDDDDEEEEF...

result:

ok correct

Test #43:

score: 0
Accepted
time: 1ms
memory: 3628kb

input:

96 51 17

output:

AAABBBCCCDDDEEEFFFGGGHHHIIIJJJKKKLLLMMMNNNOOOPPPQQQ
AAABBBCCCDDDEEEFFFGGGHHHIIIJJJKKKLLLMMMNNNOOOPPPQQQ
AAABBBCCCDDDEEEFFFGGGHHHIIIJJJKKKLLLMMMNNNOOOPPPQQQ
AAABBBCCCDDDEEEFFFGGGHHHIIIJJJKKKLLLMMMNNNOOOPPPQQQ
AAABBBCCCDDDEEEFFFGGGHHHIIIJJJKKKLLLMMMNNNOOOPPPQQQ
AAABBBCCCDDDEEEFFFGGGHHHIIIJJJKKKLLLMMMN...

result:

ok correct

Test #44:

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

input:

90 84 24

output:

AAAAAAABBBBBBBCCCCCCCDDDDDDDEEEEEEEFFFFFFFGGGGGGGHHHHHHHIIIIIIIJJJJJJJKKKKKKKLLLLLLL
AAAAAAABBBBBBBCCCCCCCDDDDDDDEEEEEEEFFFFFFFGGGGGGGHHHHHHHIIIIIIIJJJJJJJKKKKKKKLLLLLLL
AAAAAAABBBBBBBCCCCCCCDDDDDDDEEEEEEEFFFFFFFGGGGGGGHHHHHHHIIIIIIIJJJJJJJKKKKKKKLLLLLLL
AAAAAAABBBBBBBCCCCCCCDDDDDDDEEEEEEEFFFFFFFGGG...

result:

ok correct

Test #45:

score: 0
Accepted
time: 1ms
memory: 3636kb

input:

96 51 24

output:

AAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCC
AAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCC
AAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCC
AAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCC
AAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCC
AAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBCCCCCC...

result:

ok correct

Test #46:

score: 0
Accepted
time: 1ms
memory: 3632kb

input:

16 99 22

output:

AAAAAAAAABBBBBBBBBCCCCCCCCCDDDDDDDDDEEEEEEEEEFFFFFFFFFGGGGGGGGGHHHHHHHHHIIIIIIIIIJJJJJJJJJKKKKKKKKK
AAAAAAAAABBBBBBBBBCCCCCCCCCDDDDDDDDDEEEEEEEEEFFFFFFFFFGGGGGGGGGHHHHHHHHHIIIIIIIIIJJJJJJJJJKKKKKKKKK
AAAAAAAAABBBBBBBBBCCCCCCCCCDDDDDDDDDEEEEEEEEEFFFFFFFFFGGGGGGGGGHHHHHHHHHIIIIIIIIIJJJJJJJJJKKKKKKKKK
...

result:

ok correct

Test #47:

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

input:

96 91 24

output:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAA...

result:

ok correct