제출 #1079122

#제출 시각아이디문제언어결과실행 시간메모리
1079122ALeonidouPaint By Numbers (IOI16_paint)C++17
7 / 100
1 ms604 KiB
#include "paint.h" #include <bits/stdc++.h> using namespace std; #define ll int #define F first #define S second #define sz(x) (ll)x.size() #define pb push_back typedef vector <ll> vi; typedef pair <ll,ll> ii; typedef vector <ii> vii; #define dbg(x) cout<<#x<<": "<<x<<endl; #define dbg2(x,y) cout<<#x<<": "<<x<<" "<<#y<<": "<<y<<endl; #define dbg3(x,y,z) cout<<#x<<": "<<x<<" "<<#y<<": "<<y<<" "<<#z<<": "<<z<<endl; void printVct(vi &v){ for (ll i= 0; i<sz(v); i++){ cout<<v[i]<<" "; } cout<<endl; } string solve_puzzle(string s, vi c) { ll n = sz(s); ll k = sz(c); string ans; for (ll i =0; i<n; i++) ans.pb('X'); ll d = n - c[0]; for (ll i =0; i<d; i++){ ans[i] = '?'; ans[n-i-1] = '?'; } return ans; } /* ...... 1 6 */

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

paint.cpp: In function 'std::string solve_puzzle(std::string, vi)':
paint.cpp:29:8: warning: unused variable 'k' [-Wunused-variable]
   29 |     ll k = sz(c);
      |        ^
#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...