set<u_int32_t> sResult;

sResult.insert(1); sResult.insert(2); sResult.insert(3);

set<u_int32_t> sAnswer;

sAnswer.insert(2); sAnswer.insert(3); sAnswer.insert(4);

set<u_int32_t> sCommon;

set_intersection(sResult.begin(), sResult.end(), sAnswer.begin(), sAnswer.end(), inserter(sCommon, sCommon.end()));

'Programming Language' 카테고리의 다른 글

STL set set_intersection example  (0) 2015.12.03
freopen example  (0) 2015.11.30
print start recursive c example  (0) 2015.06.19
zigzag c exmaple  (0) 2015.06.19
fraction sort c example  (0) 2015.06.19
shortest path c example  (0) 2015.06.19
by TrafficYoon 2015.12.03 11:04

int main(void)
{
 int n, i, j, max_sum=0;
 freopen("T.txt", "r", stdin);

 scanf("%d", &n);

 for (i = 0; i < n; i++)
 {
  for (j = 0; j < n; j++)
  {
   scanf("%d", &map[i][j]);
   max_sum += map[i][j];
  }
 }
 find_Allpath(0, n, 0, 0, max_sum);
 printf("%d\n", min_sum);
 return 0;
}

'Programming Language' 카테고리의 다른 글

STL set set_intersection example  (0) 2015.12.03
freopen example  (0) 2015.11.30
print start recursive c example  (0) 2015.06.19
zigzag c exmaple  (0) 2015.06.19
fraction sort c example  (0) 2015.06.19
shortest path c example  (0) 2015.06.19
by TrafficYoon 2015.11.30 10:41

Sub deletesheets()
    Application.DisplayAlerts = False
    Worksheets("Sheet3").delete
    Application.DisplayAlerts = Ture
End Sub


Sub deletesheets2()
    Application.DisplayAlerts = False
    Sheets(Sheets.Count).delete
    Application.DisplayAlerts = True
End Sub

 

'Tools > Excel VBA' 카테고리의 다른 글

delete sheets  (0) 2015.11.27
add sheet  (0) 2015.11.27
copy cell  (0) 2015.11.27
by TrafficYoon 2015.11.27 16:51