-
Notifications
You must be signed in to change notification settings - Fork 4
/
db.sql
1195 lines (1030 loc) · 49.8 KB
/
db.sql
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
-- MySQL dump 10.13 Distrib 5.7.44, for Linux (x86_64)
--
-- Host: localhost Database: jol
-- ------------------------------------------------------
-- Server version 5.7.44
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
DROP DATABASE IF EXISTS jol;
CREATE Database jol;
use jol;
--
-- Table structure for table `all_problem_tag`
--
DROP TABLE IF EXISTS `all_problem_tag`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `all_problem_tag` (
`idx` int(11) NOT NULL AUTO_INCREMENT,
`tag` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
PRIMARY KEY (`idx`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `all_problem_tag`
--
LOCK TABLES `all_problem_tag` WRITE;
/*!40000 ALTER TABLE `all_problem_tag` DISABLE KEYS */;
INSERT INTO `all_problem_tag` VALUES (1,'tag1'),(2,'tag2'),(3,'tag3'),(4,'tag4'),(5,'tag5'),(6,'tag6');
/*!40000 ALTER TABLE `all_problem_tag` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `compileinfo`
--
DROP TABLE IF EXISTS `compileinfo`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `compileinfo` (
`solution_id` int(11) NOT NULL DEFAULT '0',
`error` text,
PRIMARY KEY (`solution_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `compileinfo`
--
LOCK TABLES `compileinfo` WRITE;
/*!40000 ALTER TABLE `compileinfo` DISABLE KEYS */;
/*!40000 ALTER TABLE `compileinfo` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `contest`
--
DROP TABLE IF EXISTS `contest`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `contest` (
`contest_id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) DEFAULT NULL,
`start_time` datetime DEFAULT NULL,
`end_time` datetime DEFAULT NULL,
`defunct` char(1) NOT NULL DEFAULT 'N',
`description` text,
`private` tinyint(4) NOT NULL DEFAULT '0',
`langmask` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'bits for LANG to mask',
`password` char(16) NOT NULL DEFAULT '',
`user_limit` char(1) NOT NULL,
`defunct_TA` char(1) NOT NULL,
`open_source` char(1) NOT NULL,
`lock_time` int(11) DEFAULT NULL,
`unlock` tinyint(4) DEFAULT '1',
`first_prize` int(11) DEFAULT '0',
`second_prize` int(11) DEFAULT '0',
`third_prize` int(11) DEFAULT '0',
`practice` tinyint(4) DEFAULT NULL,
PRIMARY KEY (`contest_id`),
KEY `contest_id` (`contest_id`,`defunct`,`private`,`defunct_TA`,`open_source`) USING BTREE,
KEY `running_contest` (`start_time`,`end_time`,`practice`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `contest`
--
LOCK TABLES `contest` WRITE;
/*!40000 ALTER TABLE `contest` DISABLE KEYS */;
INSERT INTO `contest` VALUES (1,'A+Bcontest','2024-01-29 21:00:00','2024-01-30 01:00:00','N','',0,0,'','N','N','N',NULL,1,0,0,0,0);
/*!40000 ALTER TABLE `contest` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `contest_discuss`
--
DROP TABLE IF EXISTS `contest_discuss`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `contest_discuss` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` varchar(255) NOT NULL DEFAULT '',
`contest_id` int(11) NOT NULL,
`problem_id` int(11) DEFAULT NULL,
`content` text,
`reply` text,
`in_date` datetime DEFAULT NULL,
`reply_date` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `contest_discuss`
--
LOCK TABLES `contest_discuss` WRITE;
/*!40000 ALTER TABLE `contest_discuss` DISABLE KEYS */;
/*!40000 ALTER TABLE `contest_discuss` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `contest_excluded_user`
--
DROP TABLE IF EXISTS `contest_excluded_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `contest_excluded_user` (
`index` int(11) NOT NULL AUTO_INCREMENT,
`contest_id` int(11) DEFAULT NULL,
`user_id` varchar(255) DEFAULT NULL,
PRIMARY KEY (`index`),
KEY `contest_id` (`contest_id`,`user_id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `contest_excluded_user`
--
LOCK TABLES `contest_excluded_user` WRITE;
/*!40000 ALTER TABLE `contest_excluded_user` DISABLE KEYS */;
INSERT INTO `contest_excluded_user` VALUES (1,1,'');
/*!40000 ALTER TABLE `contest_excluded_user` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `contest_problem`
--
DROP TABLE IF EXISTS `contest_problem`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `contest_problem` (
`index` int(11) NOT NULL AUTO_INCREMENT,
`problem_id` int(11) NOT NULL DEFAULT '0',
`contest_id` int(11) NOT NULL,
`title` char(200) NOT NULL DEFAULT '',
`num` int(11) NOT NULL DEFAULT '0',
`score` int(11) NOT NULL DEFAULT '1',
PRIMARY KEY (`index`),
KEY `contest_id` (`contest_id`) USING BTREE,
KEY `problem_id` (`problem_id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `contest_problem`
--
LOCK TABLES `contest_problem` WRITE;
/*!40000 ALTER TABLE `contest_problem` DISABLE KEYS */;
INSERT INTO `contest_problem` VALUES (1,1000,1,'',0,0);
/*!40000 ALTER TABLE `contest_problem` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `custominput`
--
DROP TABLE IF EXISTS `custominput`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `custominput` (
`solution_id` int(11) NOT NULL DEFAULT '0',
`input_text` text,
PRIMARY KEY (`solution_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `custominput`
--
LOCK TABLES `custominput` WRITE;
/*!40000 ALTER TABLE `custominput` DISABLE KEYS */;
/*!40000 ALTER TABLE `custominput` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `dailydetails`
--
DROP TABLE IF EXISTS `dailydetails`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `dailydetails` (
`start_time` date NOT NULL,
`end_time` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `dailydetails`
--
LOCK TABLES `dailydetails` WRITE;
/*!40000 ALTER TABLE `dailydetails` DISABLE KEYS */;
INSERT INTO `dailydetails` VALUES ('2023-09-01','2024-02-01');
/*!40000 ALTER TABLE `dailydetails` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `faq_codes`
--
DROP TABLE IF EXISTS `faq_codes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `faq_codes` (
`language` varchar(255) CHARACTER SET utf8 NOT NULL,
`language_show` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
`code` varchar(10000) CHARACTER SET utf8 DEFAULT NULL,
PRIMARY KEY (`language`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `faq_codes`
--
LOCK TABLES `faq_codes` WRITE;
/*!40000 ALTER TABLE `faq_codes` DISABLE KEYS */;
INSERT INTO `faq_codes` VALUES ('bash','Bash','#!/bin/bash\r\n \r\nread -a arr\r\n#echo ${#arr[@]}\r\nwhile [ ${#arr[@]} -eq 2 ]\r\ndo\r\nsum=$((${arr[0]}+${arr[1]}))\r\necho \"$sum\"\r\nread -a arr\r\ndone'),('c','C','#include <stdio.h>\r\nint main()\r\n{\r\n int a, b;\r\n while(scanf(\"%d%d\", &a, &b) != EOF)\r\n printf(\"%d\\n\", a + b);\r\n}'),('cpp','C++','#include <iostream>\r\nusing namespace std;\r\nint main()\r\n{\r\n int a, b;\r\n while(cin>> a >> b)\r\n cout << a + b << endl;\r\n return 0;\r\n}'),('csharp','C#','using System;\r\nusing System.Linq;\r\n \r\nnamespace ConsoleApplication\r\n{\r\n public class Program\r\n {\r\n private static void Main()\r\n {\r\n string line;\r\n while((line = Console.ReadLine()) != null)\r\n {\r\n Console.WriteLine(line.Split().Select(int.Parse).Sum());\r\n }\r\n }\r\n }\r\n}'),('java','Java','//package main\r\n//注意不要添加包名称,否则会报错。\r\n \r\nimport java.io.*;\r\nimport java.util.*;\r\nclass Test {\r\n}\r\npublic class Main\r\n{\r\n public static void main(String args[])\r\n {\r\n Scanner cin = new Scanner(System.in);\r\n int a, b;\r\n while(cin.hasNextInt())\r\n {\r\n a = cin.nextInt();\r\n b = cin.nextInt();\r\n System.out.println(a + b);\r\n }\r\n }\r\n}'),('lua','Lua','local count = 0\r\nfunction string.split(str, delimiter)\r\n if str==nil or str==\'\' or delimiter==nil then\r\n return nil\r\n end\r\n \r\n local result = {}\r\n for match in (str..delimiter):gmatch(\"(.-)\"..delimiter) do\r\n table.insert(result, match)\r\n end\r\n return result\r\nend\r\nwhile true do\r\n local line = io.read()\r\n if line == nil or line == \"\" then break end\r\n local tb = string.split(line, \" \")\r\n local sum = 0\r\n for i=1, #tb do\r\n local a = tonumber(tb[i])\r\n sum = sum+a\r\n end\r\n if count>0 then\r\n io.write(\"\\n\")\r\n end\r\n io.write(string.format(\"%d\", sum))\r\n count = count+1\r\nend'),('pascal','Pascal','program p1001(Input,Output);\r\nvar\r\na,b:Integer;\r\nbegin\r\n while not eof(Input) do\r\n begin\r\n Readln(a,b);\r\n Writeln(a+b);\r\n end;\r\nend.'),('perl','Perl','while (defined(my $line = <STDIN>)) {\r\n $line =~ s/\\s+$//;\r\n my @tokens = split(/ +/, $line);\r\n my $a = $tokens[0];\r\n my $b = $tokens[1];\r\n printf(\"%d\\n\", $a + $b);\r\n}'),('php','PHP','< ?php\r\nfunction solveMeFirst($a,$b){\r\n return $a + $b;\r\n}\r\n$handle = fopen (\"php://stdin\",\"r\");\r\n$s = fgets($handle);\r\nwhile ($s != \"\") {\r\n $a = explode(\" \", $s);\r\n $sum = solveMeFirst((int)$a[0],(int)$a[1]);\r\n print ($sum);\r\n print (\"\\n\");\r\n $s = fgets($handle);\r\n}\r\nfclose($handle);\r\n?>'),('python','Python2','#!/usr/bin/env python \r\n# coding=utf-8 \r\n# Python使用的是2.7,缩进可以使用tab、4个空格或2个空格,但是只能任选其中一种,不能多种混用\r\nwhile 1:\r\n a=[] \r\n s = raw_input()\r\n # raw_input()里面不要有任何提示信息\r\n if s != \"\":\r\n for x in s.split(): \r\n a.append(int(x)) \r\n \r\n print sum(a)\r\n else:\r\n break'),('ruby','Ruby','a=gets\r\nwhile a != nil && a != \"\" && a != \"\\r\" && a != \"\\n\" do\r\n arr = a.split(\" \")\r\n sum = 0\r\n arr.each_with_index do |value, index|\r\n sum = sum + value.to_i\r\n end\r\n puts sum.to_s\r\n a=gets\r\nend');
/*!40000 ALTER TABLE `faq_codes` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `faqs`
--
DROP TABLE IF EXISTS `faqs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `faqs` (
`index` int(11) NOT NULL AUTO_INCREMENT,
`content` text,
PRIMARY KEY (`index`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `faqs`
--
LOCK TABLES `faqs` WRITE;
/*!40000 ALTER TABLE `faqs` DISABLE KEYS */;
INSERT INTO `faqs` VALUES (1,'## 环境参数\r\n\r\n系统运行于[Ubuntu 14.04](http://www.ubuntu.com/)\r\n对应的编译器和编译选项如下:\r\n\r\n| 语言 | 编译器版本 | 编译选项 |\r\n| :----: | :---------------: | :--------------------------------------: |\r\n| C | gcc 4.8.4 | gcc Main.c -o Main -fno-asm -O2 -Wall -lm --static -std=c99 -DONLINE_JUDGE |\r\n| C++ | g++ 4.8.4 | g++ Main.cc -o Main -fno-asm -O2 -Wall -lm --static -std=c++11 -DONLINE_JUDGE |\r\n| Pascal | Free Pascal 2.6.2 | fpc Main.pas -oMain -O1 -Co -Cr -Ct -Ci |\r\n| Java | openjdk 1.7.0_79 | javac -J-Xms32m -J-Xmx256m Main.java (Languages except C/C++ has 2 more seconds and 128M more memory when running and judging.) |\r\n| Ruby | 1.9.3 | |\r\n| Bash | 4.3.11 | |\r\n| Python2 | 2.7.6 | |\r\n| Python3 | 3.4.3 | |\r\n| PHP | 7.0 | |\r\n| Perl | perl 5 version 18 | |\r\n| C# | mono 3.2.8 | |\r\n| Lua | 5.2.3 | |\r\n\r\n## 例题示范\r\n\r\n你的程序应该从标准输入 `stdin(\'Standard Input\')`获取输出 并将结果输出到标准输出 `stdout(\'Standard Output\')`.例如,在C语言可以使用 `scanf` ,在C++可以使用`cin` 进行输入;在C使用`printf` ,在C++使用`cout`进行输出. 用户程序不允许直接读写文件, 如果这样做可能会判为运行时错误 \"Runtime Error\"。\r\n详见[1000](/OJ/problem.php?id=1000)题hint中各种语言的参考答案。\r\n\r\n## 测评结果释义\r\n\r\n| 评测结果 | 缩写 | 含义 |\r\n| --------------------- | ---- | :--------------------------------------- |\r\n| Pending | PD | 您的提交正排队等待评测。 |\r\n| Pending Rejudge | PR | 因为数据更新或其他原因,系统将重新判你的答案。 |\r\n| Compiling | CP | 您提交的代码正在被编译。 |\r\n| Running & Judging | RN | 您的程序正在运行。 |\r\n| Judging | JG | 我们 正在检查您程序的输出是否正确。 |\r\n| Accepted | AC | 恭喜!您的程序通过了所有数据! |\r\n| Presentation Error | PE | 您的程序输出有格式问题,请检查是否多了或者少了空格 (\' \')、制表符(\'\\t\')或者换行符(\'\\n\') |\r\n| Wrong Answer | WA | 您的程序输出结果错误。 |\r\n| Runtime Error | RE | 您的程序在运行时发生错误。 |\r\n| Time Limit Exceeded | TLE | 您的程序运行的时间已经超出了题目的时间限制。 |\r\n| Memory Limit Exceeded | MLE | 您的程序运行的内存已经超出了题目的内存限制。 |\r\n| Output Limit Exceeded | OLE | 您的程序输出内容太多,超过了这个题目的输出限制。(一般输出超过答案2倍时会触发,强制终止程序,防止恶意输出对硬盘造成压力) |\r\n| Compile Error | CE | 您的程序语法出现问题,编译器无法编译。 |\r\n| System Error | SE | 评判系统内部出现错误 ,我们会尽快处理。 |\r\n| Out Of Contest Time | OCT | 考试已经结束,不再评测提交。 |\r\n\r\n## 常见编译问题\r\n\r\n有的时候你的程序在本地能编译通过,但提交OJ后却显示编译错误。\r\n\r\n这多见于C/C++,一般是因为你本地用的是VS,VS的编译器是MS-VC++,而OJ用的是G++,这两个编译器的标准略有不同,G++更符合标准,下面列出一些常见的导致CE原因:\r\n\r\n* `main` 函数必须返回`int`, ` void main()` 的函数声明会报编译错误。\r\n* `itoa` 不是ansi标准函数.\r\n* `__int64` 不是ANSI标准定义,只能在VC使用, 但是可以使用`long long`声明64位整数。\r\n\r\n如果你使用JAVA语言,请注意类名一定要是`Main`, 否则也会返回CE。\r\n\r\n## 比赛相关\r\n\r\n### 比赛的类型\r\n\r\n目前HZNUOJ有四种类型的比赛:\r\n\r\n* practice,练习赛,只是简单的把题目归个类做做练习,相应题目不会从problemset中隐藏,且通过后可以立即进入题目的status里查看别人的代码。\r\n* public,公开的比赛,任何人均可进入参加。\r\n* password,设有密码保护的比赛,只有输入正确密码才能进入。\r\n* special,特殊比赛,只有使用专门发放的账号才能进入。\r\n\r\n### 比赛赛制\r\n\r\nHZNUOJ所有类型的比赛均为ACM/ICPC赛制。\r\n\r\n每场比赛设有若干道题目,比赛开始后,参赛者需在时限内去解决这些题目。\r\n\r\n每场比赛都设有实时榜单,榜单排名规则也与ACM/ICPC相同。\r\n\r\n### ACM/ICPC排名规则\r\n\r\n每题耗时:Accepted的那一刻距离比赛开始的时间。\r\n\r\n总罚时:所有AC了的题的(耗时+错误次数*20min)的和。\r\n\r\n排名时,AC题数优先,题数相同时按罚时排序。 \r\n\r\n有些比较正式的比赛设有封榜机制,即比赛最后一段时间内的提交结果将隐藏(除了自己都不可见),榜单也会停止更新,新的提交会显示为灰色,留作最后滚榜用。\r\n\r\n#### 滚榜机制介绍\r\n\r\n滚榜是ACM/ICPC系列比赛中一个十分具有特色的机制。\r\n\r\n在正规ACM/ICPC系列比赛中,比赛最后一个小时的提交结果是隐藏的,只有选手本人能看到,在榜单上会显示成代表未知的灰色,以增加比赛紧张气氛。\r\n\r\n然后在颁奖会上,将从榜单最后一名开始,一个个揭晓灰色的未知提交,一旦揭晓的结果为通过,这个人的排名就会上升,否则这个人的排名确定,开始揭晓下一个人,以此类推。这样一来,可以从后往前一个个确定最终排名,一旦名次达到获奖名次内,可以直接进行颁奖。整个过程惊险刺激,是整个比赛的亮点所在。\r\n\r\n## 题目相关\r\n\r\nHZNUOJ的所有题目均在ProblemSet 中,每个题目都有一个唯一的数字编号,称为Problem ID。\r\n\r\n每当你AC了一道题,你就有权限查看这题所有的提交代码,借鉴参考大神们的写法,从而更上一层楼。\r\n\r\n比赛的所有题目,都是从ProblemSet中选出来的,是它的子集。\r\n\r\n当一道题被选入某个非practice模式的比赛中之后,为公平起见,它会在ProblemSet中被隐藏掉,在比赛结束后恢复。\r\n\r\n一般如果题目突然不见了,可能就是这个原因,当然也有可能是因为其他原因而被管理员手动隐藏了。\r\n\r\n当然,一般比赛的题都是新出的,比赛结束后才第一次在ProblemSet中露面。\r\n\r\n选入比赛中的题目,在比赛界面中,会隐藏掉原来的Problem ID,取而代之的是A, B, C...的代号。在比赛结束后,会在标题旁边显示真正的Problem ID,可以点击前往ProblemSet补题。\r\n\r\n## 积分规则\r\n\r\nHZNUOJ的ProblemSet中设有一个榜单,积分和等级的计算规则如下。\r\n\r\n等级由实力(Strength)决定,当实力达到一定值后自然会升级,而实力又从刷题中来,每道题后面均标有分数(Scores),代表AC这道题之后能提升多少实力。一般来说,越少人做的题目,分数越高,一起刷题的人越多,每道题的分数也越高。需要说明的是,用户的实力值是会根据大环境动态变化的(其实是因为分数在动态变化),如果你AC的题目被更多人AC出来了,你的实力值会下降,另外一方面,OJ内有更多强者涌入的时候,你的实力值也会提升。所以,想要快速升级,那就多刷题,刷难题!\r\n\r\n等级划分与小说《斗破苍穹》一致,自低向高分别为斗之气、斗者、斗师、大斗师、斗灵、斗王、斗皇、斗宗、斗尊、斗圣、斗帝,除斗帝外,每一阶又分不同等级,阶数越高,升级越困难。除此之外,每一阶还有不同的代表颜色,该阶等级越高,颜色越深。\r\n\r\n');
/*!40000 ALTER TABLE `faqs` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `gpt_code`
--
DROP TABLE IF EXISTS `gpt_code`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `gpt_code` (
`problem_id` int(11) NOT NULL,
`code` text,
`last_update_time` datetime DEFAULT NULL,
PRIMARY KEY (`problem_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `gpt_code`
--
LOCK TABLES `gpt_code` WRITE;
/*!40000 ALTER TABLE `gpt_code` DISABLE KEYS */;
INSERT INTO `gpt_code` VALUES (1000,'123','2024-02-02 15:41:48');
/*!40000 ALTER TABLE `gpt_code` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `hit_log`
--
DROP TABLE IF EXISTS `hit_log`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hit_log` (
`index` int(11) NOT NULL AUTO_INCREMENT,
`ip` varchar(20) DEFAULT NULL,
`path` text,
`time` datetime DEFAULT NULL,
`user_id` text,
PRIMARY KEY (`index`),
KEY `time` (`time`),
KEY `ip` (`ip`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `hit_log`
--
LOCK TABLES `hit_log` WRITE;
/*!40000 ALTER TABLE `hit_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `hit_log` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `loginlog`
--
DROP TABLE IF EXISTS `loginlog`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `loginlog` (
`index` int(11) NOT NULL AUTO_INCREMENT,
`user_id` varchar(20) NOT NULL DEFAULT '',
`password` varchar(40) DEFAULT NULL,
`ip` varchar(100) DEFAULT NULL,
`time` datetime DEFAULT NULL,
PRIMARY KEY (`index`),
KEY `user_time_index` (`user_id`,`time`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `loginlog`
--
LOCK TABLES `loginlog` WRITE;
/*!40000 ALTER TABLE `loginlog` DISABLE KEYS */;
/*!40000 ALTER TABLE `loginlog` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `mail`
--
DROP TABLE IF EXISTS `mail`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mail` (
`mail_id` int(11) NOT NULL AUTO_INCREMENT,
`to_user` varchar(48) NOT NULL DEFAULT '' COMMENT 'user_id',
`from_user` varchar(48) NOT NULL DEFAULT '' COMMENT 'user_id',
`title` varchar(200) NOT NULL DEFAULT '',
`content` text,
`new_mail` tinyint(1) NOT NULL DEFAULT '1',
`reply` tinyint(4) DEFAULT '0',
`in_date` datetime DEFAULT NULL,
`defunct` char(1) NOT NULL DEFAULT 'N',
PRIMARY KEY (`mail_id`),
KEY `uid` (`to_user`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `mail`
--
LOCK TABLES `mail` WRITE;
/*!40000 ALTER TABLE `mail` DISABLE KEYS */;
/*!40000 ALTER TABLE `mail` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `message`
--
DROP TABLE IF EXISTS `message`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `message` (
`message_id` int(11) NOT NULL AUTO_INCREMENT,
`problem_id` int(11) NOT NULL DEFAULT '0',
`parent_id` int(11) NOT NULL DEFAULT '0',
`thread_id` int(11) NOT NULL DEFAULT '0',
`depth` int(11) NOT NULL DEFAULT '0',
`orderNum` int(11) NOT NULL DEFAULT '0',
`user_id` varchar(20) NOT NULL DEFAULT '',
`title` varchar(200) NOT NULL DEFAULT '',
`content` text,
`in_date` datetime DEFAULT NULL,
`defunct` char(1) NOT NULL DEFAULT 'N',
PRIMARY KEY (`message_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `message`
--
LOCK TABLES `message` WRITE;
/*!40000 ALTER TABLE `message` DISABLE KEYS */;
/*!40000 ALTER TABLE `message` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `news`
--
DROP TABLE IF EXISTS `news`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `news` (
`news_id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` varchar(48) NOT NULL DEFAULT '' COMMENT 'user_id',
`title` varchar(200) NOT NULL DEFAULT '',
`content` text NOT NULL,
`time` datetime NOT NULL,
`importance` tinyint(4) NOT NULL DEFAULT '0',
`defunct` char(1) NOT NULL DEFAULT 'N',
PRIMARY KEY (`news_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `news`
--
LOCK TABLES `news` WRITE;
/*!40000 ALTER TABLE `news` DISABLE KEYS */;
/*!40000 ALTER TABLE `news` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `online`
--
DROP TABLE IF EXISTS `online`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `online` (
`hash` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`ip` varchar(20) CHARACTER SET utf8 NOT NULL DEFAULT '',
`ua` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '',
`refer` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`lastmove` int(10) NOT NULL,
`firsttime` int(10) DEFAULT NULL,
`uri` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`hash`),
UNIQUE KEY `hash` (`hash`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `online`
--
LOCK TABLES `online` WRITE;
/*!40000 ALTER TABLE `online` DISABLE KEYS */;
/*!40000 ALTER TABLE `online` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `printer_code`
--
DROP TABLE IF EXISTS `printer_code`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `printer_code` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` char(20) NOT NULL,
`contest_id` int(11) NOT NULL,
`code` text NOT NULL,
`in_date` datetime DEFAULT NULL,
`status` int(11) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `printer_code`
--
LOCK TABLES `printer_code` WRITE;
/*!40000 ALTER TABLE `printer_code` DISABLE KEYS */;
/*!40000 ALTER TABLE `printer_code` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `privilege`
--
DROP TABLE IF EXISTS `privilege`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `privilege` (
`index` int(11) NOT NULL AUTO_INCREMENT,
`user_id` char(20) NOT NULL DEFAULT '',
`rightstr` char(30) NOT NULL DEFAULT '',
PRIMARY KEY (`index`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `privilege`
--
LOCK TABLES `privilege` WRITE;
/*!40000 ALTER TABLE `privilege` DISABLE KEYS */;
INSERT INTO `privilege` VALUES (1,'admin','root');
/*!40000 ALTER TABLE `privilege` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `privilege_distribution`
--
DROP TABLE IF EXISTS `privilege_distribution`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `privilege_distribution` (
`group_name` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '',
`enter_admin_page` tinyint(4) DEFAULT NULL,
`edit_default_problem` tinyint(4) DEFAULT NULL,
`rejudge` tinyint(4) DEFAULT NULL,
`edit_news` tinyint(4) DEFAULT NULL,
`edit_contest` tinyint(4) DEFAULT NULL,
`download_ranklist` tinyint(4) DEFAULT NULL,
`generate_team` tinyint(4) DEFAULT NULL,
`edit_user_profile` tinyint(4) DEFAULT NULL,
`edit_privilege_group` tinyint(4) DEFAULT NULL,
`edit_privilege_distribution` tinyint(4) DEFAULT NULL,
`inner_function` tinyint(4) DEFAULT NULL,
`see_hidden_default_problem` tinyint(4) DEFAULT NULL,
`see_hidden_user_info` tinyint(4) DEFAULT NULL,
`see_wa_info_out_of_contest` tinyint(4) DEFAULT NULL,
`see_wa_info_in_contest` tinyint(4) DEFAULT NULL,
`see_source_out_of_contest` tinyint(4) DEFAULT NULL,
`see_source_in_contest` tinyint(4) DEFAULT NULL,
`see_compare` tinyint(4) DEFAULT NULL,
`upload_files` tinyint(4) DEFAULT NULL,
`watch_solution_video` tinyint(4) DEFAULT NULL,
`manage_gptcode` tinyint(4) DEFAULT NULL,
`manage_tag` tinyint(4) DEFAULT NULL,
`set_dailydetails` tinyint(4) DEFAULT NULL,
PRIMARY KEY (`group_name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `privilege_distribution`
--
LOCK TABLES `privilege_distribution` WRITE;
/*!40000 ALTER TABLE `privilege_distribution` DISABLE KEYS */;
INSERT INTO `privilege_distribution` VALUES ('administrator',1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1),('exam_user',1,0,1,0,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0),('hznu_viewer',1,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0),('root',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1),('source_browser',1,0,1,0,0,1,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0),('teacher',1,1,1,0,1,1,0,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1),('teacher_assistant',1,1,1,0,1,0,0,0,0,0,0,1,1,1,1,1,1,0,1,0,0,0,0);
/*!40000 ALTER TABLE `privilege_distribution` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `privilege_groups`
--
DROP TABLE IF EXISTS `privilege_groups`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `privilege_groups` (
`group_order` int(11) NOT NULL DEFAULT '0',
`group_name` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
PRIMARY KEY (`group_order`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `privilege_groups`
--
LOCK TABLES `privilege_groups` WRITE;
/*!40000 ALTER TABLE `privilege_groups` DISABLE KEYS */;
INSERT INTO `privilege_groups` VALUES (0,'root'),(1,'administrator'),(2,'teacher'),(3,'teacher_assistant'),(4,'source_browser'),(5,'hznu_viewer'),(6,'exam_user');
/*!40000 ALTER TABLE `privilege_groups` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `problem`
--
DROP TABLE IF EXISTS `problem`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `problem` (
`problem_id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(200) NOT NULL DEFAULT '',
`description` text,
`input` text,
`output` text,
`sample_input` text,
`sample_output` text,
`spj` char(1) NOT NULL DEFAULT '0',
`hint` text,
`author` varchar(30) DEFAULT NULL,
`source` varchar(100) DEFAULT NULL,
`in_date` datetime DEFAULT NULL,
`time_limit` int(11) NOT NULL DEFAULT '0',
`memory_limit` int(11) NOT NULL DEFAULT '0',
`defunct` char(1) NOT NULL DEFAULT 'N',
`accepted` int(11) DEFAULT '0',
`submit` int(9) DEFAULT '0',
`solved_user` int(9) DEFAULT '0',
`submit_user` int(9) DEFAULT NULL,
`score` decimal(6,2) unsigned DEFAULT '100.00',
`tag1` varchar(250) DEFAULT NULL,
`tag2` varchar(250) DEFAULT NULL,
`tag3` varchar(250) DEFAULT NULL,
`problemset` varchar(255) DEFAULT NULL,
PRIMARY KEY (`problem_id`),
UNIQUE KEY `problem_id` (`problem_id`) USING BTREE,
KEY `spj` (`problemset`,`defunct`,`spj`,`problem_id`) USING BTREE,
KEY `score` (`score`,`accepted`)
) ENGINE=MyISAM AUTO_INCREMENT=1004 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `problem`
--
LOCK TABLES `problem` WRITE;
/*!40000 ALTER TABLE `problem` DISABLE KEYS */;
INSERT INTO `problem` VALUES (1000,'A+B','1','1','1',NULL,NULL,'0','','','','2024-01-29 14:47:02',1,256,'Y',1,1,0,NULL,100.00,NULL,NULL,NULL,'default'),(1001,'A1','','','',NULL,NULL,'0','','','','2024-02-04 20:31:17',1,256,'Y',0,0,0,NULL,100.00,NULL,NULL,NULL,'default'),(1002,'A2','','','',NULL,NULL,'0','','','','2024-02-02 18:04:24',1,256,'Y',0,0,0,NULL,100.00,NULL,NULL,NULL,'default'),(1003,'A3','','','',NULL,NULL,'0','','','','2024-01-29 21:17:43',1,256,'Y',0,0,0,NULL,100.00,NULL,NULL,NULL,'default');
/*!40000 ALTER TABLE `problem` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `problem_samples`
--
DROP TABLE IF EXISTS `problem_samples`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `problem_samples` (
`problem_id` int(11) NOT NULL,
`sample_id` int(11) NOT NULL DEFAULT '0',
`input` text CHARACTER SET utf8,
`output` text CHARACTER SET utf8,
`show_after` int(11) DEFAULT '0',
PRIMARY KEY (`problem_id`,`sample_id`),
KEY `problem_id` (`problem_id`,`sample_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `problem_samples`
--
LOCK TABLES `problem_samples` WRITE;
/*!40000 ALTER TABLE `problem_samples` DISABLE KEYS */;
INSERT INTO `problem_samples` VALUES (1000,0,'1 2','3',0);
/*!40000 ALTER TABLE `problem_samples` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `problem_tag`
--
DROP TABLE IF EXISTS `problem_tag`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `problem_tag` (
`index` int(11) NOT NULL AUTO_INCREMENT,
`problem_id` int(10) unsigned zerofill NOT NULL,
`tag` varchar(100) CHARACTER SET utf8mb4 NOT NULL,
PRIMARY KEY (`index`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `problem_tag`
--
LOCK TABLES `problem_tag` WRITE;
/*!40000 ALTER TABLE `problem_tag` DISABLE KEYS */;
INSERT INTO `problem_tag` VALUES (1,0000001000,'tag1'),(2,0000001000,'tag2'),(3,0000001000,'tag3'),(4,0000001000,'tag4'),(5,0000001002,'tag2'),(6,0000001001,'tag2');
/*!40000 ALTER TABLE `problem_tag` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `problemset`
--
DROP TABLE IF EXISTS `problemset`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `problemset` (
`index` int(11) NOT NULL,
`set_name` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '',
`set_name_show` varchar(255) CHARACTER SET utf8 NOT NULL,
PRIMARY KEY (`index`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `problemset`
--
LOCK TABLES `problemset` WRITE;
/*!40000 ALTER TABLE `problemset` DISABLE KEYS */;
INSERT INTO `problemset` VALUES (1,'default','DEFAULT');
/*!40000 ALTER TABLE `problemset` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `reply`
--
DROP TABLE IF EXISTS `reply`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `reply` (
`rid` int(11) NOT NULL AUTO_INCREMENT,
`author_id` varchar(48) NOT NULL DEFAULT '' COMMENT 'user_id',
`time` datetime NOT NULL,
`content` text NOT NULL,
`topic_id` int(11) NOT NULL,
`status` int(2) NOT NULL DEFAULT '0',
`ip` varchar(30) NOT NULL,
PRIMARY KEY (`rid`),
KEY `author_id` (`author_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `reply`
--
LOCK TABLES `reply` WRITE;
/*!40000 ALTER TABLE `reply` DISABLE KEYS */;
/*!40000 ALTER TABLE `reply` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `runtimeinfo`
--
DROP TABLE IF EXISTS `runtimeinfo`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `runtimeinfo` (
`solution_id` int(11) NOT NULL DEFAULT '0',
`error` text,
PRIMARY KEY (`solution_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `runtimeinfo`
--
LOCK TABLES `runtimeinfo` WRITE;
/*!40000 ALTER TABLE `runtimeinfo` DISABLE KEYS */;
/*!40000 ALTER TABLE `runtimeinfo` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `sim`
--
DROP TABLE IF EXISTS `sim`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sim` (
`s_id` int(11) NOT NULL,
`sim_s_id` int(11) DEFAULT NULL,
`sim` int(11) DEFAULT NULL,
PRIMARY KEY (`s_id`),
KEY `Index_sim_id` (`sim_s_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `sim`
--
LOCK TABLES `sim` WRITE;
/*!40000 ALTER TABLE `sim` DISABLE KEYS */;
/*!40000 ALTER TABLE `sim` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `slide`
--
DROP TABLE IF EXISTS `slide`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `slide` (
`img_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`url` varchar(200) NOT NULL,
`defunct` char(1) DEFAULT NULL,
PRIMARY KEY (`img_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `slide`
--
LOCK TABLES `slide` WRITE;
/*!40000 ALTER TABLE `slide` DISABLE KEYS */;
/*!40000 ALTER TABLE `slide` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `solution`
--
DROP TABLE IF EXISTS `solution`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `solution` (
`solution_id` int(11) NOT NULL AUTO_INCREMENT,
`problem_id` int(11) DEFAULT '0',
`user_id` char(20) NOT NULL,
`time` int(11) NOT NULL DEFAULT '0',
`memory` int(11) NOT NULL DEFAULT '0',
`in_date` datetime NOT NULL,
`result` smallint(6) NOT NULL DEFAULT '0',
`language` tinyint(4) NOT NULL DEFAULT '0',
`ip` char(15) NOT NULL,
`contest_id` int(11) DEFAULT NULL,
`valid` tinyint(4) NOT NULL DEFAULT '1',
`num` tinyint(4) NOT NULL DEFAULT '-1',
`code_length` int(11) NOT NULL DEFAULT '0',
`judgetime` datetime DEFAULT NULL,
`pass_rate` decimal(2,2) unsigned NOT NULL DEFAULT '0.00',
`judger` char(16) NOT NULL DEFAULT 'LOCAL',
PRIMARY KEY (`solution_id`),
KEY `pid` (`problem_id`),
KEY `res` (`result`),
KEY `in_date` (`in_date`) USING BTREE,
KEY `uid` (`user_id`,`result`) USING BTREE,
KEY `cid` (`contest_id`,`result`,`num`) USING BTREE
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `solution`
--
LOCK TABLES `solution` WRITE;
/*!40000 ALTER TABLE `solution` DISABLE KEYS */;
INSERT INTO `solution` VALUES (1,1000,'admin',0,1120,'2019-03-13 16:10:55',4,1,'127.0.0.1',NULL,1,-1,75,'2019-03-13 16:10:56',0.00,'172.17.0.1');
/*!40000 ALTER TABLE `solution` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `solution_video_watch_log`
--
DROP TABLE IF EXISTS `solution_video_watch_log`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `solution_video_watch_log` (
`index` int(11) NOT NULL AUTO_INCREMENT,
`video_id` int(11) NOT NULL,
`user_id` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
`time` datetime DEFAULT NULL,
PRIMARY KEY (`index`),
KEY `video_id` (`video_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `solution_video_watch_log`
--
LOCK TABLES `solution_video_watch_log` WRITE;
/*!40000 ALTER TABLE `solution_video_watch_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `solution_video_watch_log` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `source_code`
--
DROP TABLE IF EXISTS `source_code`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `source_code` (
`solution_id` int(11) NOT NULL,
`source` text NOT NULL,
PRIMARY KEY (`solution_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `source_code`
--
LOCK TABLES `source_code` WRITE;
/*!40000 ALTER TABLE `source_code` DISABLE KEYS */;
INSERT INTO `source_code` VALUES (1,'#include <stdio.h>\r\nint main(){\r\n puts(\"3\");\r\n return 0;\r\n}');
/*!40000 ALTER TABLE `source_code` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `source_code_user`
--
DROP TABLE IF EXISTS `source_code_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `source_code_user` (
`solution_id` int(11) NOT NULL,
`source` text NOT NULL,
PRIMARY KEY (`solution_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `source_code_user`
--
LOCK TABLES `source_code_user` WRITE;
/*!40000 ALTER TABLE `source_code_user` DISABLE KEYS */;
INSERT INTO `source_code_user` VALUES (1,'#include <stdio.h>\r\nint main(){\r\n puts(\"3\");\r\n return 0;\r\n}');
/*!40000 ALTER TABLE `source_code_user` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Temporary table structure for view `squid`
--
DROP TABLE IF EXISTS `squid`;
/*!50001 DROP VIEW IF EXISTS `squid`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
/*!50001 CREATE VIEW `squid` AS SELECT
1 AS `user_id`,
1 AS `password`,
1 AS `solved`*/;
SET character_set_client = @saved_cs_client;
--
-- Table structure for table `tag`
--
DROP TABLE IF EXISTS `tag`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tag` (
`index` int(11) NOT NULL AUTO_INCREMENT,
`problem_id` int(10) unsigned zerofill NOT NULL,
`user_id` varchar(100) CHARACTER SET utf8 NOT NULL,
`tag` varchar(100) CHARACTER SET utf8 NOT NULL,
PRIMARY KEY (`index`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tag`
--
LOCK TABLES `tag` WRITE;
/*!40000 ALTER TABLE `tag` DISABLE KEYS */;
/*!40000 ALTER TABLE `tag` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `team`
--