제출 #789639

#제출 시각아이디문제언어결과실행 시간메모리
789639AkramElOmraniPaint By Numbers (IOI16_paint)C++17
7 / 100
1 ms308 KiB
#pragma once #include <bits/stdc++.h> #include <string> #include <vector> using namespace std; std::string solve_puzzle(std::string s, std::vector<int> c) { int n = s.length(); int m = c.size(); string ans(n, '?'); int mn = n - c[0]; int mx = c[0] - 1; for(int j = mn; j <= mx; ++j) { ans[j] = 'X'; } return ans; }

컴파일 시 표준 에러 (stderr) 메시지

paint.cpp:1:9: warning: #pragma once in main file
    1 | #pragma once
      |         ^~~~
paint.cpp: In function 'std::string solve_puzzle(std::string, std::vector<int>)':
paint.cpp:10:6: warning: unused variable 'm' [-Wunused-variable]
   10 |  int m = c.size();
      |      ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...