結果

問題 No.2510 Six Cube Sum Counting
ユーザー 👑 p-adicp-adic
提出日時 2023-10-27 08:05:53
言語 cLay
(20240104-1)
結果
AC  
実行時間 157 ms / 4,000 ms
コード長 152 bytes
コンパイル時間 2,336 ms
コンパイル使用メモリ 173,560 KB
実行使用メモリ 83,348 KB
最終ジャッジ日時 2023-10-27 08:06:03
合計ジャッジ時間 6,773 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
83,348 KB
testcase_01 AC 99 ms
83,348 KB
testcase_02 AC 141 ms
83,348 KB
testcase_03 AC 101 ms
83,348 KB
testcase_04 AC 99 ms
83,348 KB
testcase_05 AC 98 ms
83,348 KB
testcase_06 AC 122 ms
83,348 KB
testcase_07 AC 101 ms
83,348 KB
testcase_08 AC 108 ms
83,348 KB
testcase_09 AC 118 ms
83,348 KB
testcase_10 AC 99 ms
83,348 KB
testcase_11 AC 100 ms
83,348 KB
testcase_12 AC 104 ms
83,348 KB
testcase_13 AC 98 ms
83,348 KB
testcase_14 AC 99 ms
83,348 KB
testcase_15 AC 101 ms
83,348 KB
testcase_16 AC 98 ms
83,348 KB
testcase_17 AC 98 ms
83,348 KB
testcase_18 AC 96 ms
83,348 KB
testcase_19 AC 97 ms
83,348 KB
testcase_20 AC 124 ms
83,348 KB
testcase_21 AC 151 ms
83,348 KB
testcase_22 AC 141 ms
83,348 KB
testcase_23 AC 134 ms
83,348 KB
testcase_24 AC 147 ms
83,348 KB
testcase_25 AC 107 ms
83,348 KB
testcase_26 AC 156 ms
83,348 KB
testcase_27 AC 157 ms
83,348 KB
testcase_28 AC 115 ms
83,348 KB
testcase_29 AC 147 ms
83,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@X,L=301,M=L**3*3,A=0,Y;char t[M]{};rep(d,L){rep(a,d+1)rep(b,a,d+1)t[a**3+b**3+d**3]++;rep(e,d,L)rep(f,e,L)0<=(Y=X-d**3-e**3-f**3)<M?A+=t[Y]:A;}wt(A);
0