結果

問題 No.438 Cwwプログラミング入門
ユーザー nebukuro09nebukuro09
提出日時 2016-10-29 00:57:44
言語 PyPy2
(7.3.15)
結果
WA  
実行時間 -
コード長 792 bytes
コンパイル時間 206 ms
コンパイル使用メモリ 77,708 KB
実行使用メモリ 79,536 KB
最終ジャッジ日時 2023-08-16 10:32:06
合計ジャッジ時間 42,260 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 92 ms
79,060 KB
testcase_01 AC 99 ms
79,192 KB
testcase_02 AC 654 ms
78,984 KB
testcase_03 AC 657 ms
79,092 KB
testcase_04 AC 659 ms
79,048 KB
testcase_05 AC 661 ms
79,424 KB
testcase_06 AC 659 ms
78,956 KB
testcase_07 AC 657 ms
79,076 KB
testcase_08 AC 95 ms
79,000 KB
testcase_09 AC 82 ms
78,944 KB
testcase_10 AC 154 ms
78,896 KB
testcase_11 AC 153 ms
79,184 KB
testcase_12 AC 115 ms
79,000 KB
testcase_13 AC 662 ms
78,984 KB
testcase_14 AC 99 ms
79,412 KB
testcase_15 AC 658 ms
79,084 KB
testcase_16 AC 88 ms
79,032 KB
testcase_17 AC 111 ms
79,536 KB
testcase_18 AC 661 ms
79,060 KB
testcase_19 AC 661 ms
78,980 KB
testcase_20 AC 89 ms
78,948 KB
testcase_21 AC 93 ms
79,180 KB
testcase_22 AC 158 ms
78,996 KB
testcase_23 AC 147 ms
78,976 KB
testcase_24 AC 658 ms
79,068 KB
testcase_25 AC 87 ms
79,024 KB
testcase_26 AC 116 ms
79,024 KB
testcase_27 AC 655 ms
79,140 KB
testcase_28 AC 80 ms
78,492 KB
testcase_29 AC 134 ms
79,016 KB
testcase_30 AC 654 ms
79,124 KB
testcase_31 AC 118 ms
79,012 KB
testcase_32 AC 133 ms
79,048 KB
testcase_33 AC 109 ms
79,404 KB
testcase_34 WA -
testcase_35 AC 94 ms
79,180 KB
testcase_36 AC 96 ms
79,036 KB
testcase_37 AC 101 ms
79,412 KB
testcase_38 AC 652 ms
79,248 KB
testcase_39 AC 95 ms
79,040 KB
testcase_40 AC 652 ms
79,096 KB
testcase_41 AC 90 ms
79,036 KB
testcase_42 AC 114 ms
79,076 KB
testcase_43 AC 581 ms
78,928 KB
testcase_44 AC 87 ms
79,040 KB
testcase_45 AC 92 ms
79,196 KB
testcase_46 AC 96 ms
79,276 KB
testcase_47 AC 119 ms
79,328 KB
testcase_48 AC 430 ms
79,080 KB
testcase_49 AC 224 ms
79,464 KB
testcase_50 AC 664 ms
78,980 KB
testcase_51 AC 660 ms
79,068 KB
testcase_52 AC 116 ms
79,028 KB
testcase_53 AC 341 ms
79,232 KB
testcase_54 AC 661 ms
78,952 KB
testcase_55 AC 122 ms
79,068 KB
testcase_56 AC 171 ms
79,064 KB
testcase_57 AC 303 ms
79,056 KB
testcase_58 AC 658 ms
78,988 KB
testcase_59 AC 90 ms
79,220 KB
testcase_60 AC 191 ms
79,008 KB
testcase_61 AC 82 ms
78,684 KB
testcase_62 AC 665 ms
79,096 KB
testcase_63 AC 114 ms
79,076 KB
testcase_64 AC 127 ms
78,992 KB
testcase_65 AC 662 ms
78,980 KB
testcase_66 AC 139 ms
79,072 KB
testcase_67 AC 657 ms
79,088 KB
testcase_68 WA -
testcase_69 AC 190 ms
79,116 KB
testcase_70 AC 254 ms
79,240 KB
testcase_71 AC 273 ms
79,160 KB
testcase_72 AC 178 ms
79,156 KB
testcase_73 AC 278 ms
79,028 KB
testcase_74 AC 315 ms
79,056 KB
testcase_75 AC 186 ms
79,068 KB
testcase_76 WA -
testcase_77 AC 302 ms
78,996 KB
testcase_78 AC 663 ms
79,080 KB
testcase_79 AC 662 ms
79,296 KB
testcase_80 AC 660 ms
79,080 KB
testcase_81 AC 657 ms
79,120 KB
testcase_82 AC 666 ms
79,072 KB
testcase_83 AC 664 ms
79,220 KB
testcase_84 AC 665 ms
79,052 KB
testcase_85 AC 658 ms
78,908 KB
testcase_86 AC 660 ms
78,924 KB
testcase_87 AC 662 ms
79,060 KB
testcase_88 AC 129 ms
79,060 KB
testcase_89 WA -
testcase_90 AC 564 ms
79,108 KB
testcase_91 WA -
testcase_92 AC 620 ms
79,168 KB
testcase_93 WA -
testcase_94 AC 158 ms
78,820 KB
testcase_95 WA -
testcase_96 AC 659 ms
79,180 KB
testcase_97 WA -
testcase_98 AC 663 ms
78,952 KB
testcase_99 AC 660 ms
78,960 KB
testcase_100 AC 437 ms
79,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

x, y, z = map(int, raw_input().split())

def print_ans(a, b, w):
    if a >= 0 and b <= 0:
        print ('w'*abs(b) + 'c'*abs(a) + 'C'*(abs(a)-1) + 'W'*abs(b))*w+'C'*(w-1)
    elif a <= 0 and b >= 0:
        print ('c'*abs(a) + 'w'*abs(b) + 'C'*(abs(b)-1) + 'W'*abs(a))*w+'C'*(w-1)
    else:
        print ('c'*(abs(a)-1) + 'w'*abs(b) + 'C'*(abs(a)+abs(b)-1))*w+'C'*(w-1)

for a in xrange(-5000, 5000):
    for b in xrange(-5000+abs(a), 5000-abs(a)):
        c = a*x+b*y
        if z == c == 0 and 2*(abs(a)+abs(b)) <= 9900:
            print_ans(a, b, 1)
            exit()
        if c > 0 and z % c == 0:
            if a != 0 or b != 0:
                if 2*(abs(a)+abs(b))*(z/c)-1 <= 9900:
                    print_ans(a, b, z/c)
                    exit()
print 'mourennaihasimasenn'
0