[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)]
相關文章
- 「暑期訓練」「Brute Force」 Multiplication Table (CFR256D2D)
- (DP) CF1861D Sorting By Multiplication
- 較眼直委派難過象帶然kyu
- create table,show tables,describe table,DROP TABLE,ALTER TABLE ,怎麼使用?
- table
- MySQL:Analyze table導致'waiting for table flush'MySqlAI
- Sparse Table
- MySQL:Table_open_cache_hits/Table_open_cache_misses/Table_open_cache_overflowsMySql
- SQLAlchemy Table(表)類方式 – Table類和Column類SQL
- table寬度
- Lua table(表)
- audit by user by table
- Oracle:TABLE MONITORINGOracle
- jquery-tablejQuery
- Oracle table selectOracle
- flink table apiAPI
- bootsrap table 表格載入完整 post-body.bs.tableboot
- [20200214]Printing all table preferences affecting dbms_stats.gather_table_stats
- vertica解鎖table
- truncate table (tablename )表明
- HTML <table>表格概述HTML
- 7.68 CUBE_TABLE
- MySQL table into a golang strucMySqlGolang
- HashMap、Hash Table、ConcurrentHashMapHashMap
- CSS table表格美化CSS
- SAP APO 常用Table
- GLOBAL TEMPORARY TABLE(轉)
- oracle cache table(轉)Oracle
- Oracle Pipelined Table(轉)Oracle
- el-table高亮
- a-table 設定
- Html DOM操作TABLEHTML
- tpextbuilder- Table 表格UI
- Lua 列印table 實現型別python的repr用於table型別Python
- 資料庫 sqlite3_get_table,sqlite3_free_table資料庫SQLite
- vue 商品sku新增,笛卡爾演算法,商品新增。動態生成table,table新增值後 再生成的table 不改變table之前輸入的值Vue演算法
- WebMagic抓取 table分頁資料, table分頁時,URL不變Web
- Bootstrap-Table 總結boot