Linux tsuru-no-tsurugi 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.0.18 & Your IP : 216.73.216.68
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html /
kougakubu /
htdocs /
Delete
Unzip
Name
Size
Permission
Date
Action
.vscode
[ DIR ]
drwxr-xr-x
2024-08-27 23:20
.well-known
[ DIR ]
drwxrwxr-x
2024-08-29 11:22
DirectEdit-master
[ DIR ]
drwxrwxr-x
2024-08-29 23:14
admin
[ DIR ]
drwxr-xr-x
2024-08-27 23:20
answer
[ DIR ]
drwxr-xr-x
2024-08-28 22:37
api
[ DIR ]
drwxrwxr-x
2025-04-07 13:23
article
[ DIR ]
drwxr-xr-x
2024-08-27 23:20
auth
[ DIR ]
drwxr-xr-x
2024-08-28 00:03
discord
[ DIR ]
drwxr-xr-x
2024-08-27 23:20
discord-bot
[ DIR ]
drwxr-xr-x
2024-08-27 23:20
example
[ DIR ]
drwxr-xr-x
2024-08-27 23:20
img
[ DIR ]
drwxr-xr-x
2024-08-27 23:20
judge
[ DIR ]
drwxr-xr-x
2024-08-27 23:20
problems
[ DIR ]
drwxr-xr-x
2024-08-27 23:20
programming_practice
[ DIR ]
drwxrwxrwx
2026-06-18 21:35
s2
[ DIR ]
drwxr-xr-x
2024-08-27 23:20
submit
[ DIR ]
drwxr-xr-x
2024-08-27 23:20
testimonial
[ DIR ]
drwxr-xr-x
2024-08-27 23:20
MathJax.js
62.04
KB
-rwxr-xr-x
2024-08-27 23:20
answer.html
4.06
KB
-rwxr-xr-x
2024-08-28 00:23
answer.php
4.47
KB
-rwxr-xr-x
2024-08-28 22:38
code.css
475
B
-rwxr-xr-x
2024-08-27 23:20
css.css
2.75
KB
-rwxr-xr-x
2024-08-27 23:20
database.py
4.16
KB
-rwxr-xr-x
2024-08-27 23:20
database2.py
731
B
-rwxr-xr-x
2024-08-27 23:20
default.html
3.3
KB
-rwxr-xr-x
2024-08-28 00:23
default.php
3.82
KB
-rwxr-xr-x
2024-08-28 00:23
detail.php
5.75
KB
-rwxr-xr-x
2024-08-28 00:23
detail2.php
5.79
KB
-rwxr-xr-x
2024-08-28 00:23
fuck.txt
488.29
KB
-rw-r--r--
2024-08-27 23:20
icon.jpg
285.53
KB
-rwxr-xr-x
2024-08-27 23:20
icon.png
285.53
KB
-rwxr-xr-x
2024-08-27 23:20
index.php
9.17
KB
-rwxr-xr-x
2024-08-28 00:22
index2.html
5.91
KB
-rwxr-xr-x
2024-08-28 00:23
judge.php
3.8
KB
-rwxr-xr-x
2024-08-28 00:23
judge.php.save
3.74
KB
-rwxr-xr-x
2024-08-28 00:23
judge.py
4.76
KB
-rwxr-xr-x
2024-08-27 23:20
output.html
1.16
KB
-rwxr-xr-x
2024-08-27 23:20
prism.css
6.22
KB
-rwxr-xr-x
2024-08-27 23:20
prism.js
49.16
KB
-rwxr-xr-x
2024-08-27 23:20
problems.html
4.56
KB
-rwxr-xr-x
2024-08-28 00:23
problems.php
5.6
KB
-rwxr-xr-x
2024-08-28 00:23
rank.php
3.93
KB
-rwxr-xr-x
2024-08-28 00:23
submit.html
4.35
KB
-rwxr-xr-x
2024-08-28 00:23
submit2.php
5.03
KB
-rwxr-xr-x
2024-08-27 23:20
t.php
3.22
KB
-rw-r--r--
2024-08-27 23:20
test-1.php
1.29
KB
-rwxr-xr-x
2024-08-29 23:28
test.php
171
B
-rwxr-xr-x
2024-08-28 00:19
test2.html
445
B
-rwxr-xr-x
2024-08-27 23:20
testimonial.php
4.34
KB
-rwxr-xr-x
2024-08-28 00:23
testimonial_gene.php
18.02
KB
-rwxr-xr-x
2024-08-29 23:28
typescript
2.09
KB
-rwxr-xr-x
2024-08-27 23:20
Save
Rename
#おっきなお友達のみんなえ #お前らが打ち込んでいる虚無には #何の意味があるの? #ねぇ 教えてよ ぼく #ぜんぜぇーんわからないんだ! # author: TsuruNoTsurugi date: 2023 10 03 # command : sudo python3 judge.py # std in : problem id lang # akisai-submit-[id] <- user submit # akisai-problem-[problem name]-input-[input file] # -output-[output file] # -problem_info.txt # problem_info.txt # [point] # [test case number] # [test case file name1] # [test case file name2]... def is_same_file(file1_path,file2_path): # file1 for ans file1=open(file1_path,"r") file2=open(file2_path,"r") file1_read=file1.read();file2_read=file2.read().split() flag=True file2_len=len(file2_read) for i in range(len(file1_read.split())): if i > file2_len - 1: flag=False else: if file2_read[i][-1] == " ": file2_read[i]=file2_read[i][:-1] if file2_read[i]!=file1_read.split()[i]: flag=False file1.close();file2.close() return flag from os import system from filecmp import cmp from time import perf_counter problem,id,lang=input().split() html_files_path="/var/www/html/" path = html_files_path+"submit/"+str(id) problem_info_file = open(html_files_path+"problems/"+problem+"/problem_info.txt") problem_info = problem_info_file.read();problem_info=problem_info.split("\n") point = int(problem_info[0]) test_case_number = int(problem_info[1]) system("cp /dev/null "+path+"/submit_info.txt") if lang == "python": source_file_path=path+"/a.py" max_time=0;judge=True;error=False output_file_path = path + "/" + "output.txt" error_file_path = path + "/" + "error.txt" submit_info_file = open(path+"/submit_info.txt","a") n=0 for i in range(test_case_number): submit_info_file = open(path+"/submit_info.txt","a") print(problem_info[2+i]) system("cp /dev/null "+output_file_path) system("cp /dev/null "+error_file_path) test_case_file = html_files_path+"problems/" + str(problem) + "/input/" + problem_info[2+i] run_command = "python3 " + source_file_path + " < " + test_case_file + " >> " + output_file_path + " 2>> " + error_file_path #print(run_command.split(" ")) #subprocess.run(run_command.split(" ")) start=perf_counter() try: error_happen=bool(system(run_command)) except Exception as e: error_happen=True running_time=round((perf_counter()-start)*1000) if error_happen: error=True max_time=max(max_time,running_time) ans_case_file = html_files_path+"problems/" + str(problem) + "/output/" + problem_info[2+i] #file_same_judge=cmp(output_file_path,ans_case_file) file_same_judge=is_same_file(ans_case_file,output_file_path) if not file_same_judge: judge=False elif file_same_judge and not error_happen: n+=1 submit_info_file.write(problem_info[2+i]+" "+("AC" if ((not error_happen)and(judge)) else ("WA" if not error_happen else "RE"))+" "+str(running_time)+"\n") submit_info_file.close() submit_info_file.write(str(max_time)+" "+("AC" if n==test_case_number else "RE" if error else "WA")) submit_info_file.close() elif lang == "cpp": source_file_path=path+"/a.cpp" system("cp /dev/null "+ path + "/cerror.txt") run_command = "g++ " + source_file_path + " -o " + path + "/a.exe 2>> " + path + "/cerror.txt" cerror_happen=bool(system(run_command)) if not cerror_happen: max_time=0;judge=True;error=False output_file_path = path + "/" + "output.txt" error_file_path = path + "/" + "error.txt" submit_info_file = open(path+"/submit_info.txt","a") n=0 for i in range(test_case_number): system("cp /dev/null "+output_file_path) system("cp /dev/null "+error_file_path) test_case_file = html_files_path+"problems/" + str(problem) + "/input/" + problem_info[2+i] run_command = path + "/a.exe" + " < " + test_case_file + " >> " + output_file_path + " 2>> " + error_file_path #print(run_command.split(" ")) #subprocess.run(run_command.split(" ")) start=perf_counter() error_happen=bool(system(run_command)) running_time=round((perf_counter()-start)*1000) max_time=max(max_time,running_time) ans_case_file = html_files_path+"problems/" + str(problem) + "/output/" + problem_info[2+i] #file_same_judge=cmp(output_file_path,ans_case_file) file_same_judge=is_same_file(ans_case_file,output_file_path) if error_happen: comment="RE" error=True elif not file_same_judge: comment="WA" else: comment="AC" n+=1 submit_info_file.write(problem_info[2+i]+" "+comment+" "+str(running_time)+"\n") submit_info_file.write(str(max_time)+" "+("AC" if n==test_case_number else ("RE" if error else "WA"))) submit_info_file.close() else: submit_info_file = open(path+"/submit_info.txt","a") submit_info_file.write("-1 CE") submit_info_file.close() system("rm "+output_file_path) system("rm "+error_file_path)