Overview
SHA1 Hash: | d103994d4c9125a5151f0efee05f81f511177f95 |
---|---|
Date: | 2012-02-11 11:25:40 |
User: | kinaba |
Comment: | gcj-tmpl |
Timelines: | family | ancestors | descendants | both | trunk |
Downloads: | Tarball | ZIP archive |
Other Links: | files | file ages | manifest |
Tags And Properties
- branch=trunk inherited from [9165bd3629]
- sym-trunk inherited from [9165bd3629]
Changes
Modified lib/gcj/!gcj-tmpl.cpp from [8b7e23cf8b869fd6] to [75232ad7ad58abcb].
1 1 //----------------------------------------------------------------------------- 2 -// >>Code Template<< (for Visual C++) 2 +// >>Code Template<< (for Visual C++ 11) 3 3 4 4 #include <iostream> 5 5 #include <sstream> 6 6 #include <iomanip> 7 -#include <string> 8 7 #include <vector> 9 -#include <set> 8 +#include <string> 10 9 #include <map> 10 +#include <set> 11 11 #include <algorithm> 12 12 #include <numeric> 13 13 #include <iterator> 14 -#include <complex> 15 14 #include <functional> 15 +#include <complex> 16 16 #include <queue> 17 17 #include <stack> 18 18 #include <cmath> 19 19 #include <cassert> 20 20 #include <cstring> 21 -#define cout os 21 +#include <tuple> 22 22 using namespace std; 23 23 typedef long long LL; 24 24 typedef complex<double> CMP; 25 25 void END_OF_INPUT_FOR_THIS_TEST_CASE(); // stub for multi-threading 26 26 27 27 //----------------------------------------------------------------------------- 28 28 // >>Main<< ................................................................................ 36 36 // >>Code Template<< (Multi-Thread Solver) 37 37 38 38 #if 1 39 39 #undef cout 40 40 #include <windows.h> 41 41 #include <process.h> 42 42 43 -static const int THREAD_NUM = 2; 43 +static const int THREAD_NUM = 4; 44 44 volatile int g_id; 45 45 int g_nCase; 46 46 CRITICAL_SECTION g_cs; 47 47 vector<string> g_output; 48 48 49 49 unsigned __stdcall thread_main( void* t_id ) { 50 50 for(;;) {