[6 kyu] Multiplication table
[6 kyu] Multiplication table
Question
Sample Test
My Answer (accepted)
def multiplication_table(size):
bl = list()
for i in range(1, size+1):
sl = list()
for j in range(1, size+1):
sl.append(i*j)
bl.append(sl)
print(bl)
return bl
Suggested Answer
def multiplicationTable(size):
return [[j*i for j in range(1, size+1)] for i in range(1, size+1)]
相關文章
- HDU 4951 Multiplication table(找規律)
- Codeforces 448D Multiplication Table
- codeforces448D Multiplication Table(二分答案)
- UVALive 7511 Multiplication Table (數學模擬題)
- 「暑期訓練」「Brute Force」 Multiplication Table (CFR256D2D)
- 例題6-3 Matrix Chain Multiplication ,Uva 442AI
- oracle cache table(6)Oracle
- A Multiplication Game (博弈,規律)GAM
- PE教程6: Import Table(引入表Import
- LeetCode-Sparse Matrix MultiplicationLeetCode
- HDU 4920 Matrix multiplication(矩陣相乘)矩陣
- ZOJ Problem Set - 1094 Matrix Chain MultiplicationAI
- 找TELock加殼的Import Table的方法 (6千字)Import
- POJ 3318 Matrix Multiplication(隨機化演算法)隨機演算法
- HDU4920 Matrix multiplication (CPU cache對程式的影響)
- 拆分Table 為Partition Table
- [Oracle] Partition table exchange Heap tableOracle
- html~table、table cell的使用HTML
- 如何修改table及partitions Table
- User defined table type and table valued parameters
- SNMP TABLE ERROR : Requested table is empty or does not existError
- TABLE size (including table,index,lob,lobindex)Index
- Oracle 普通table 轉換為partition tableOracle
- drop table和truncate table的區別
- create a partition table using a exsit table
- Table Monitor
- Flink Table/SQL API 規劃 —— Dynamic TableSQLAPI
- MySQL:Table_open_cache_hits/Table_open_cache_misses/Table_open_cache_overflowsMySql
- MySQL:Analyze table導致'waiting for table flush'MySqlAI
- SQLAlchemy Table(表)類方式 – Table類和Column類SQL
- Oracle -- 深入體會PLAN_TABLE、PLAN_TABLE$Oracle
- Oracle --- PLAN_TABLE$和PLAN_TABLE區別Oracle
- create table if not exists Waiting for table metadata lockAI
- audit by user by table
- jquery-tablejQuery
- oracle temporary tableOracle
- index table (IOT)Index
- oracle shrink tableOracle