結果
| 問題 |
No.2510 Six Cube Sum Counting
|
| コンテスト | |
| ユーザー |
tails
|
| 提出日時 | 2023-10-20 22:55:40 |
| 言語 | cLay (20241019-1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 267 bytes |
| コンパイル時間 | 2,484 ms |
| コンパイル使用メモリ | 173,680 KB |
| 実行使用メモリ | 10,140 KB |
| 最終ジャッジ日時 | 2024-09-20 21:13:19 |
| 合計ジャッジ時間 | 26,296 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 TLE * 1 |
| other | AC * 18 TLE * 3 -- * 5 |
ソースコード
ll f(ll x,ll m,ll d){
if(x==0){
return 1;
}
if(x%9>d&&x%9<9-d){
return 0;
}
if(x%7>d&&x%7<7-d){
return 0;
}
ll r=0;
rrep(a,m+1){
if(x-a*a*a*d>0){
break;
}
if(x-a*a*a>=0){
r+=f(x-a*a*a,a,d-1);
}
}
return r;
}
{
ll@x;
wt(f(x,300,6));
}
tails