結果
問題 | No.2929 Miracle Branch |
ユーザー | loop0919 |
提出日時 | 2024-07-18 01:40:05 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 441 bytes |
コンパイル時間 | 223 ms |
コンパイル使用メモリ | 82,848 KB |
実行使用メモリ | 84,184 KB |
最終ジャッジ日時 | 2024-08-25 23:42:06 |
合計ジャッジ時間 | 9,970 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 42 ms
57,660 KB |
testcase_01 | AC | 40 ms
58,240 KB |
testcase_02 | AC | 40 ms
58,760 KB |
testcase_03 | AC | 43 ms
59,276 KB |
testcase_04 | AC | 43 ms
59,484 KB |
testcase_05 | AC | 43 ms
60,224 KB |
testcase_06 | AC | 42 ms
59,644 KB |
testcase_07 | AC | 42 ms
59,640 KB |
testcase_08 | AC | 45 ms
59,604 KB |
testcase_09 | AC | 42 ms
58,692 KB |
testcase_10 | AC | 43 ms
59,576 KB |
testcase_11 | AC | 44 ms
60,336 KB |
testcase_12 | AC | 42 ms
59,344 KB |
testcase_13 | AC | 42 ms
59,548 KB |
testcase_14 | AC | 43 ms
59,436 KB |
testcase_15 | AC | 43 ms
58,692 KB |
testcase_16 | AC | 45 ms
60,140 KB |
testcase_17 | AC | 46 ms
59,300 KB |
testcase_18 | AC | 62 ms
69,352 KB |
testcase_19 | AC | 62 ms
71,352 KB |
testcase_20 | AC | 63 ms
73,324 KB |
testcase_21 | AC | 67 ms
76,180 KB |
testcase_22 | AC | 44 ms
59,988 KB |
testcase_23 | AC | 72 ms
76,324 KB |
testcase_24 | AC | 90 ms
78,492 KB |
testcase_25 | AC | 67 ms
76,036 KB |
testcase_26 | AC | 51 ms
64,068 KB |
testcase_27 | AC | 57 ms
66,648 KB |
testcase_28 | AC | 44 ms
58,112 KB |
testcase_29 | AC | 41 ms
58,144 KB |
testcase_30 | AC | 41 ms
58,384 KB |
testcase_31 | AC | 41 ms
59,604 KB |
testcase_32 | AC | 40 ms
58,448 KB |
testcase_33 | AC | 42 ms
58,176 KB |
testcase_34 | AC | 136 ms
84,076 KB |
testcase_35 | AC | 138 ms
83,700 KB |
testcase_36 | AC | 41 ms
59,600 KB |
testcase_37 | AC | 138 ms
83,832 KB |
testcase_38 | AC | 139 ms
83,672 KB |
testcase_39 | AC | 135 ms
83,552 KB |
testcase_40 | AC | 136 ms
83,692 KB |
testcase_41 | AC | 136 ms
84,184 KB |
testcase_42 | AC | 137 ms
83,668 KB |
testcase_43 | AC | 145 ms
83,676 KB |
testcase_44 | AC | 141 ms
83,652 KB |
testcase_45 | WA | - |
ソースコード
X=int(input()) g=[] while X%4==0: g.append(4) X//=4 for i in range(2,200000): while X%i==0: g.append(i) X//=i if X!=1: print(-1) exit() if len(g)==0: g.append(1) if sum(g)+len(g)>200000+1: print(-1) exit() print(sum(g)+len(g)) c=["b"]*len(g)+["g"]*sum(g) pos=len(g)+1 for i in range(len(g)): if i!=0: print(i,i+1) for j in range(g[i]): print(i+1,pos) pos+=1 print(*c)