View Single Post
  #109 (permalink)  
Old 01-27-10, 17:44
Lenny77 Lenny77 is offline
Registered User
 
Join Date: Jul 2009
Location: NY
Posts: 886
Cool Very Hard Sudoku

Very Hard in 0 second:

Code:
select max(sd_id) from final table
(insert into Sd_Source  
select ifnull(max(sd_id), 0) + 1, 1, '000000000'
     , ifnull(max(sd_id), 0) + 1, timestamp(generate_unique())       
  from Sd_Source 
union all
select ifnull(max(sd_id), 0) + 1, 2, '000060092'
     , ifnull(max(sd_id), 0) + 1, timestamp(generate_unique())
  from Sd_Source 
union all
select ifnull(max(sd_id), 0) + 1, 3, '097020163'
     , ifnull(max(sd_id), 0) + 1, timestamp(generate_unique())
  from Sd_Source 
union all 
select ifnull(max(sd_id), 0) + 1, 4, '020007040'
     , ifnull(max(sd_id), 0) + 1, timestamp(generate_unique())
  from Sd_Source 
union all
select ifnull(max(sd_id), 0) + 1, 5, '001902300'
     , ifnull(max(sd_id), 0) + 1, timestamp(generate_unique())
  from Sd_Source 
union all
select ifnull(max(sd_id), 0) + 1, 6, '030800070'
     , ifnull(max(sd_id), 0) + 1, timestamp(generate_unique())
  from Sd_Source 
union all
select ifnull(max(sd_id), 0) + 1, 7, '579040620'
     , ifnull(max(sd_id), 0) + 1, timestamp(generate_unique())
  from Sd_Source 
union all
select ifnull(max(sd_id), 0) + 1, 8, '460090000'
     , ifnull(max(sd_id), 0) + 1, timestamp(generate_unique())
  from Sd_Source 
union all
select ifnull(max(sd_id), 0) + 1, 9, '000000000'
     , ifnull(max(sd_id), 0) + 1, timestamp(generate_unique())
  from Sd_Source 
);
Quote:
Line 1: | 2 | 1 | 6 | 3 | 8 | 9 | 4 | 5 | 7 |
Line 2: | 3 | 5 | 4 | 7 | 6 | 1 | 8 | 9 | 2 |
Line 3: | 8 | 9 | 7 | 4 | 2 | 5 | 1 | 6 | 3 |
Line 4: | 9 | 2 | 8 | 6 | 3 | 7 | 5 | 4 | 1 |
Line 5: | 7 | 4 | 1 | 9 | 5 | 2 | 3 | 8 | 6 |
Line 6: | 6 | 3 | 5 | 8 | 1 | 4 | 2 | 7 | 9 |
Line 7: | 5 | 7 | 9 | 1 | 4 | 3 | 6 | 2 | 8 |
Line 8: | 4 | 6 | 3 | 2 | 9 | 8 | 7 | 1 | 5 |
Line 9: | 1 | 8 | 2 | 5 | 7 | 6 | 9 | 3 | 4 |
Lenny
Reply With Quote