結果
問題 | No.438 Cwwプログラミング入門 |
ユーザー | nebukuro09 |
提出日時 | 2016-10-29 01:23:36 |
言語 | PyPy2 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 836 bytes |
コンパイル時間 | 152 ms |
コンパイル使用メモリ | 77,484 KB |
実行使用メモリ | 80,540 KB |
最終ジャッジ日時 | 2023-08-16 10:35:41 |
合計ジャッジ時間 | 76,712 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | AC | 1,210 ms
78,824 KB |
testcase_03 | AC | 1,204 ms
79,080 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 1,211 ms
78,932 KB |
testcase_07 | AC | 1,206 ms
78,928 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | AC | 1,208 ms
79,260 KB |
testcase_14 | WA | - |
testcase_15 | AC | 1,207 ms
79,120 KB |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | AC | 1,210 ms
79,180 KB |
testcase_19 | AC | 1,207 ms
79,008 KB |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | AC | 1,212 ms
78,756 KB |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | AC | 1,211 ms
79,312 KB |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | AC | 1,209 ms
78,824 KB |
testcase_31 | WA | - |
testcase_32 | WA | - |
testcase_33 | WA | - |
testcase_34 | WA | - |
testcase_35 | WA | - |
testcase_36 | WA | - |
testcase_37 | WA | - |
testcase_38 | AC | 1,206 ms
79,080 KB |
testcase_39 | WA | - |
testcase_40 | AC | 1,208 ms
78,968 KB |
testcase_41 | WA | - |
testcase_42 | WA | - |
testcase_43 | AC | 1,081 ms
78,844 KB |
testcase_44 | WA | - |
testcase_45 | WA | - |
testcase_46 | WA | - |
testcase_47 | WA | - |
testcase_48 | WA | - |
testcase_49 | WA | - |
testcase_50 | AC | 1,207 ms
79,132 KB |
testcase_51 | WA | - |
testcase_52 | WA | - |
testcase_53 | WA | - |
testcase_54 | AC | 1,229 ms
79,324 KB |
testcase_55 | WA | - |
testcase_56 | WA | - |
testcase_57 | WA | - |
testcase_58 | AC | 1,236 ms
79,148 KB |
testcase_59 | WA | - |
testcase_60 | WA | - |
testcase_61 | WA | - |
testcase_62 | AC | 1,228 ms
79,496 KB |
testcase_63 | WA | - |
testcase_64 | WA | - |
testcase_65 | AC | 1,228 ms
79,052 KB |
testcase_66 | WA | - |
testcase_67 | AC | 1,210 ms
78,760 KB |
testcase_68 | WA | - |
testcase_69 | WA | - |
testcase_70 | WA | - |
testcase_71 | WA | - |
testcase_72 | WA | - |
testcase_73 | WA | - |
testcase_74 | WA | - |
testcase_75 | WA | - |
testcase_76 | WA | - |
testcase_77 | WA | - |
testcase_78 | AC | 1,206 ms
79,000 KB |
testcase_79 | AC | 1,205 ms
79,128 KB |
testcase_80 | AC | 1,205 ms
79,388 KB |
testcase_81 | AC | 1,228 ms
78,888 KB |
testcase_82 | AC | 1,205 ms
79,280 KB |
testcase_83 | AC | 1,207 ms
79,244 KB |
testcase_84 | AC | 1,211 ms
79,076 KB |
testcase_85 | AC | 1,234 ms
78,892 KB |
testcase_86 | AC | 1,205 ms
78,996 KB |
testcase_87 | AC | 1,230 ms
79,108 KB |
testcase_88 | WA | - |
testcase_89 | WA | - |
testcase_90 | WA | - |
testcase_91 | WA | - |
testcase_92 | WA | - |
testcase_93 | WA | - |
testcase_94 | AC | 269 ms
78,836 KB |
testcase_95 | WA | - |
testcase_96 | WA | - |
testcase_97 | WA | - |
testcase_98 | AC | 1,208 ms
79,084 KB |
testcase_99 | AC | 1,229 ms
79,076 KB |
testcase_100 | WA | - |
ソースコード
x, y, z = map(int, raw_input().split()) def print_ans(a, b, w): print a, b, w length = 2*(abs(a)+abs(b)-2)*w + w-1 print length if length > 10000: return if a >= 0 and b < 0: ans = ('w'*abs(b) + 'c'*abs(a) + 'C'*(abs(a)-1) + 'W'*abs(b))*w+'C'*(w-1) elif a < 0 and b >= 0: ans = ('c'*abs(a) + 'w'*abs(b) + 'C'*(abs(b)-1) + 'W'*abs(a))*w+'C'*(w-1) else: ans = ('c'*abs(a) + 'w'*abs(b) + 'C'*(abs(a)+abs(b)-1))*w+'C'*(w-1) if len(ans) <= 10000: print ans exit() else: return for a in xrange(-5000, 5001): for b in xrange(-5000, 5001): c = a*x+b*y if z == c == 0: print_ans(a, b, 1) if c > 0 and z % c == 0: if a != 0 or b != 0: print_ans(a, b, z/c) print 'mourennaihasimasenn'