| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1347354 | qs1 | Sladoled (COCI26_sladoled) | C++20 | 0 ms | 344 KiB |
#include <bitset>
#include <iostream>
using namespace std;
#define lli unsigned short
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
lli x,a,b;
int y;
cin>>x;
bitset<50001>v[x];
lli cnt[x]={0};
for(lli i=0;i<x;++i){
v[i][0]=1;
}
while(y--){
cin>>a>>b;
a--;
if(!v[a][b]){
for(lli i=b;i<50001;++i){
if(v[a][i-b]&&!v[a][i]){
v[a][i]=++cnt[a];
}
}
}
cout<<cnt[a]<<endl;
}
}컴파일 시 표준 에러 (stderr) 메시지
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
