Compare commits
4 Commits
7a8309553b
...
6615ec4519
Author | SHA1 | Date |
---|---|---|
Brian Seymour | 6615ec4519 | |
Brian Seymour | 178ddf19d6 | |
TitouanT | e169d0cab8 | |
Vrganj | ab8ede1c5d |
|
@ -1,3 +1,4 @@
|
|||
api/api
|
||||
api/package-lock.json
|
||||
lxc/i
|
||||
lxc/lockfile
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
cd /tmp/$2
|
||||
gcc -std=c11 -o binary -x c code.code
|
||||
timeout -s KILL 3 xargs -a args.args ./binary < stdin.stdin
|
||||
timeout -s KILL 10 gcc -std=c11 -o binary -x c code.code
|
||||
timeout -s KILL 3 xargs -a args.args -d '\n' ./binary < stdin.stdin
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /tmp/$2
|
||||
name=$(grep -Po "(?<=\n|\A)\s*(public\s+)?(class|interface)\s+\K([^\/\\\\\n\s{]+)" code.code)
|
||||
cp code.code $name.java
|
||||
javac $name.java
|
||||
timeout -s KILL 3 xargs -a args.args -d '\n' java $name < stdin.stdin
|
||||
cp code.code interim.java
|
||||
timeout -s KILL 10 xargs -a args.args -d '\n' java interim.java < stdin.stdin
|
||||
|
||||
|
|
Loading…
Reference in New Issue