結果

問題 No.501 穴と文字列
ユーザー yuppe19 😺yuppe19 😺
提出日時 2017-04-07 22:33:41
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 260 bytes
コンパイル時間 585 ms
コンパイル使用メモリ 6,528 KB
実行使用メモリ 6,724 KB
最終ジャッジ日時 2023-09-23 00:31:37
合計ジャッジ時間 1,626 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 27 ms
6,648 KB
testcase_02 AC 11 ms
5,940 KB
testcase_03 AC 11 ms
6,040 KB
testcase_04 AC 12 ms
5,868 KB
testcase_05 AC 11 ms
5,896 KB
testcase_06 WA -
testcase_07 AC 12 ms
5,860 KB
testcase_08 AC 11 ms
5,884 KB
testcase_09 AC 11 ms
6,072 KB
testcase_10 WA -
testcase_11 AC 11 ms
6,044 KB
testcase_12 AC 11 ms
6,048 KB
testcase_13 AC 11 ms
5,860 KB
testcase_14 WA -
testcase_15 AC 12 ms
6,004 KB
testcase_16 AC 11 ms
6,004 KB
testcase_17 AC 11 ms
6,044 KB
testcase_18 AC 21 ms
6,648 KB
testcase_19 AC 33 ms
6,724 KB
testcase_20 WA -
testcase_21 AC 31 ms
6,568 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python2
# -*- coding: utf-8 -*-
# †
n, d = map(int, raw_input().split())
v = [0] * n

for loop in xrange(2):
    for i in reversed(xrange(n)):
        if d > 0:
            v[i] += 1
            d -= 1
res = ''.join('CAB'[x] for x in v)
print res
0