結果
問題 | No.677 10^Nの約数 |
ユーザー | mai |
提出日時 | 2018-09-25 23:31:09 |
言語 | Whitespace (0.4) |
結果 |
TLE
|
実行時間 | - |
コード長 | 3,982 bytes |
コンパイル時間 | 50 ms |
コンパイル使用メモリ | 5,248 KB |
実行使用メモリ | 176,000 KB |
最終ジャッジ日時 | 2024-04-16 06:50:03 |
合計ジャッジ時間 | 13,117 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 6 ms
5,376 KB |
testcase_01 | AC | 14 ms
6,912 KB |
testcase_02 | AC | 28 ms
8,192 KB |
testcase_03 | AC | 40 ms
9,216 KB |
testcase_04 | AC | 67 ms
10,112 KB |
testcase_05 | AC | 91 ms
12,160 KB |
testcase_06 | AC | 121 ms
13,312 KB |
testcase_07 | AC | 169 ms
17,280 KB |
testcase_08 | AC | 268 ms
19,456 KB |
testcase_09 | AC | 357 ms
27,392 KB |
testcase_10 | AC | 445 ms
30,464 KB |
testcase_11 | AC | 589 ms
48,000 KB |
testcase_12 | AC | 725 ms
56,064 KB |
testcase_13 | AC | 844 ms
59,392 KB |
testcase_14 | AC | 1,000 ms
88,960 KB |
testcase_15 | AC | 1,436 ms
102,272 KB |
testcase_16 | AC | 1,558 ms
107,392 KB |
testcase_17 | AC | 1,547 ms
106,240 KB |
testcase_18 | TLE | - |
ソースコード
func:swap(p,q){let:t;t=*p;*p=*q;*q=t;}func:qsort(begin,end){if(end-begin<=1){return;}let:pv(begin),it(begin+1);while(it<end){if(*pv>*it){swap(pv+1,it);swap(pv,pv+1);pv+=1;}it+=1;}qsort(begin,pv);qsort(pv+1,end);}func:pow(x,p){if(p<=0){return:1;}else{return:x*pow(x,p-1);}}func:main(){let:n;let:stk[399],cnt(0);n=__geti();let:i(0),j(0);while(i<=n){j=0;while(j<=n){stk[cnt]=pow(2,i)*pow(5,j);cnt+=1;j+=1;}i+=1;}stk[cnt]=0;qsort(&stk,&stk+cnt);i=0;cnt-=1;while(i<=cnt){__puti(stk[i]);__putc('\n');i+=1;}}