错误信息:
Error decompressing the archive file : Traceback (most recent call last): File "/var/task/app.py", line 75, in judge_handler tar.extractall(extract_dir) File "/usr/lib64/python2.7/tarfile.py", line 2079, in extractall self.extract(tarinfo, path) File "/usr/lib64/python2.7/tarfile.py", line 2116, in extract self._extract_member(tarinfo, os.path.join(path, tarinfo.name)) File "/usr/lib64/python2.7/tarfile.py", line 2192, in _extract_member self.makefile(tarinfo, targetpath) File "/usr/lib64/python2.7/tarfile.py", line 2232, in makefile with bltn_open(targetpath, "wb") as target: IOError: [Errno 28] No space left on device: '/tmp/tmpKbiYuy/water2.in'
源代码:
#include <cstdio>
int main(int n, int k, int ans){
scanf("%d%d", &n, &k);
while(__builtin_popcount(n)>k) ans += n & -n, n += n & -n;
return !printf("%d", ans);
}