Problem 1271 W和方程的故事

2021-06-05 09:23:50 字數 633 閱讀 2850

做為乙個小菜鳥,最近在學習一些演算法方面的東西,在ustc online judge for acm/icpc看到這麼簡單的一道題:

自己用c語言寫了乙個順序迴圈求解演算法:

#includeint main();

int i;

int j;

long long count=0;

//第一行輸入乙個正整數t(t<=100),代表下面共有t組測試資料。

scanf("%d",&t);

for(i=t;i>0;--i)

for(i=t;i>0;--i)

printf("%lld\n",count);//輸出該方程解的組數。

count=0;

} return 0;

}

系統接收了**,顯示的演算法效能如下:

看到有些筒子提交的演算法**長度和記憶體消耗和我的都差不多,但是時間在0ms,不懂,求高人指教~

dB dBm dBw和w的換算關係

dbm是乙個表示功率絕對值的值 也可以認為是以1mw功率為基準的乙個比值 計算公式為 10log 功率值 1mw 這裡將dbm轉換為w的口算規律是要先記住 1個基準 和 2個原則 1個基準 30dbm 1w 2個原則 1 3dbm,功率乘2倍 3dbm,功率乘1 2 舉例 33dbm 30dbm 3...

fopen中r 和w 的區別

原文 r open for reading and writing.the stream is positioned at the beginning of the file.w open for reading and writing.the file is created if it does ...

fopen中r 和w 的區別

2010 12 23 11 30 29 分類 c函式 標籤 fopen中r 和w 的區別 舉報 字型大小訂閱 r open for reading and writing.the stream is positioned at the beginning of the file.w open for...