結果
問題 | No.2510 Six Cube Sum Counting |
ユーザー |
![]() |
提出日時 | 2024-02-13 11:13:01 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 2,092 ms / 4,000 ms |
コード長 | 327 bytes |
コンパイル時間 | 188 ms |
コンパイル使用メモリ | 82,556 KB |
実行使用メモリ | 441,144 KB |
最終ジャッジ日時 | 2024-09-28 18:20:24 |
合計ジャッジ時間 | 62,862 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 26 |
ソースコード
X=int(input())D={};N=300;ans=0A=[i**3 for i in range(N+1)]for d in range(N+1):for b in range(d+1):for a in range(b+1):p=A[a]+A[b]+A[d]if p not in D:D[p]=0D[p]+=1for e in range(d,N+1):for f in range(e,N+1):p=X-(A[d]+A[e]+A[f])if p in D:ans+=D[p]print(ans)