結果

問題 No.9005 実行時間/使用メモリテスト(テスト用)
ユーザー testestesttestestest
提出日時 2015-09-08 21:01:42
言語 C90
(gcc 11.4.0)
結果
AC  
実行時間 1 ms / 3,000 ms
コード長 268 bytes
コンパイル時間 151 ms
コンパイル使用メモリ 23,868 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-26 10:10:37
合計ジャッジ時間 667 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
4,380 KB
testcase_01 AC 0 ms
4,376 KB
testcase_02 AC 0 ms
4,380 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 1 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main(){
int n,a,b,c,d,a3,s,max;
max=0;
scanf("%d",&n);
for(d=n;d>11;d--){
for(c=d-3;c>0;c--){
s=d*d*d+c*c*c;
if(s<max)break;
for(b=d-1;b>c+1;b--){
a3=s-b*b*b;
if(a3*2>s)break;
a=1;
while(a*a*a<a3)a++;
if(a*a*a==a3)max=s;
}
}
}
printf("%d",0);
}
0