結果

問題 No.2510 Six Cube Sum Counting
ユーザー 👑 p-adicp-adic
提出日時 2023-10-27 00:59:18
言語 cLay
(20240104-1)
結果
WA  
実行時間 -
コード長 210 bytes
コンパイル時間 2,316 ms
コンパイル使用メモリ 180,868 KB
実行使用メモリ 174,612 KB
最終ジャッジ日時 2023-10-27 01:01:24
合計ジャッジ時間 64,728 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3,939 ms
174,592 KB
testcase_01 AC 3,972 ms
174,592 KB
testcase_02 WA -
testcase_03 AC 3,899 ms
174,592 KB
testcase_04 AC 3,919 ms
174,592 KB
testcase_05 AC 3,921 ms
174,592 KB
testcase_06 AC 3,941 ms
174,592 KB
testcase_07 AC 3,949 ms
174,592 KB
testcase_08 AC 3,985 ms
174,592 KB
testcase_09 AC 3,903 ms
174,592 KB
testcase_10 TLE -
testcase_11 AC 3,964 ms
174,592 KB
testcase_12 AC 3,960 ms
174,592 KB
testcase_13 AC 3,939 ms
174,592 KB
testcase_14 AC 3,955 ms
174,592 KB
testcase_15 AC 3,929 ms
174,592 KB
testcase_16 AC 3,944 ms
174,592 KB
testcase_17 AC 3,972 ms
174,592 KB
testcase_18 AC 3,908 ms
174,592 KB
testcase_19 AC 3,942 ms
174,592 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 3,941 ms
174,592 KB
testcase_26 AC 3,906 ms
174,592 KB
testcase_27 AC 3,850 ms
174,592 KB
testcase_28 AC 3,855 ms
174,592 KB
testcase_29 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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