結果

問題 No.2510 Six Cube Sum Counting
ユーザー 👑 p-adicp-adic
提出日時 2023-10-27 01:41:20
言語 cLay
(20240104-1)
結果
TLE  
実行時間 -
コード長 273 bytes
コンパイル時間 2,330 ms
コンパイル使用メモリ 183,824 KB
実行使用メモリ 174,608 KB
最終ジャッジ日時 2023-10-27 01:44:15
合計ジャッジ時間 133,537 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 TLE -
testcase_02 TLE -
testcase_03 TLE -
testcase_04 TLE -
testcase_05 TLE -
testcase_06 TLE -
testcase_07 TLE -
testcase_08 TLE -
testcase_09 TLE -
testcase_10 TLE -
testcase_11 TLE -
testcase_12 TLE -
testcase_13 TLE -
testcase_14 TLE -
testcase_15 TLE -
testcase_16 TLE -
testcase_17 TLE -
testcase_18 TLE -
testcase_19 TLE -
testcase_20 TLE -
testcase_21 TLE -
testcase_22 TLE -
testcase_23 WA -
testcase_24 WA -
testcase_25 TLE -
testcase_26 TLE -
testcase_27 TLE -
testcase_28 TLE -
testcase_29 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

int@X,L=301,M=L+1,C[L],A=0,Y;rep(p,L)C[p]=p**3;double u;unordered_map<int,double>t;rep(a,L)rep(b,a,L)rep(c,b,L)(t[C[a]+C[b]+C[c]]*=M)+=c+1;rep(d,L)rep(e,d,L)rep(f,e,L){if(t.count(Y=X-C[d]-C[e]-C[f])){double&s=t[Y];while(s)d>=(u=((u=s/M)-(Y=u))*M)-1?++A:A,s=(s-u)/M;}}wt(A);
0