/
.tcjudgerc
68 lines (59 loc) · 1.22 KB
/
.tcjudgerc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
@user_name = 'yourusernamehere'
@password = yourpasswordhere'
@compiler = { :CXX => 'clang++', :Java => 'javac', :CSharp => 'csc' }
@template = {
:CXX => Proc.new { <<TEMPLATE
#include <vector>
#include <string>
#include <map>
#include <set>
#include <algorithm>
#include <iostream>
#include <cmath>
#include <climits>
#include <queue>
#include <stack>
#include <numeric>
using namespace std;
// CUT begin
#{ generate_timestamp() }
// CUT end
class #{ @problem_definition[:class_name] } {
public:
#{ generate_signature() } {
}
};
TEMPLATE
},
:Java => Proc.new { <<TEMPLATE
#{ generate_timestamp() }
public class #{ @problem_definition[:class_name] } {
public #{ generate_signature() } {
}
}
TEMPLATE
},
:CSharp => Proc.new { <<TEMPLATE
using System;
using System.Collections.Generic;
using System.Text;
// CUT begin
#{ generate_timestamp() }
// CUT end
public class #{ @problem_definition[:class_name] }
{
public #{ generate_signature() }
{
}
}
TEMPLATE
}
}
@diary = {
:url => 'http://topcoder.g.hatena.ne.jp/peryaudo/',
:from_month => Date.parse('2013-09-01'),
:to_month => Time.now.to_date,
:from_srm => 400,
:to_srm => 613,
:difficulties => ['DIV2Easy', 'DIV2Medium', 'DIV2Hard', 'DIV1Easy' , 'DIV1Medium' , 'DIV1Hard']
}