답안 #132849

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
132849 2019-07-19T18:13:20 Z reda Paint By Numbers (IOI16_paint) C++14
0 / 100
3 ms 504 KB
#include<bits/stdc++.h>
using namespace std ;
void solve_puzzle( string  s, vector<int> c)
{
 
    for(int i=0;i<c[0];i++)
    {
    s[i]='X';
    }
    for(int i=c[0];i<s.size();i++)
        s[i]='_';
}

Compilation message

paint.cpp: In function 'void solve_puzzle(std::__cxx11::string, std::vector<int>)':
paint.cpp:10:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=c[0];i<s.size();i++)
                    ~^~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Runtime error 3 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 3 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 3 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 3 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 3 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 3 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 3 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -