제출 #780999

#제출 시각아이디문제언어결과실행 시간메모리
780999jasmin비스킷 담기 (IOI20_biscuits)C++17
0 / 100
1 ms340 KiB
#include "biscuits.h" #include<bits/stdc++.h> using namespace std; long long subtask2(long long x, std::vector<long long> a) { int n=a.size(); for(int i=0; i<n-1; i++){ a[i+1] += a[i]/2; a[i]%=2; } long long ans=1; for(int i=0; i<n; i++){ ans*=(a[i]+1); } return ans; } long long count_tastiness(long long x, std::vector<long long> a) { if(x==1){ return subtask2(x, a); } return 0; }
#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...