제출 #112427

#제출 시각UTC-0아이디문제언어결과실행 시간메모리
1124272019-05-19 16:49:15MagiskoToys (CEOI18_toy)C++14
59 / 100
5070 ms82200 KiB
#include <bits/stdc++.h>
using namespace std ;
vector<int> primes ;
bool isprime[105000] ;
int maxi(int n)
{
int counter = 0 ;
int m = n ;
for (int i(0) ; i<primes.size() ; i++)
{
while(n%primes[i]==0)
{
n /= primes[i] ;
counter++ ;
}
}
if (n==m) return 2 ;
return counter ;
}
vector<vector<int>> f(int n, int k)
{
if (k==0) return {} ;
if (k==1) return {{n}} ;
if (n==1) return {{1}} ;
vector<vector<int>> sol ;
vector<int> par ;
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

toy.cpp: In function 'int maxi(int)':
toy.cpp:12:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int i(0) ; i<primes.size() ; i++)
                   ~^~~~~~~~~~~~~~
toy.cpp: In function 'std::vector<std::vector<int> > f(int, int)':
toy.cpp:38:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for (int j(0) ; j<pre.size() ; j++)
                       ~^~~~~~~~~~~
toy.cpp:41:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int u(0) ; u<pre[j].size() ; u++)
                         ~^~~~~~~~~~~~~~
toy.cpp: In function 'int main()':
toy.cpp:81:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i(0) ; i<p.size() ; i++)
                     ~^~~~~~~~~
toy.cpp:84:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for (int j(0) ; j<p[i].size() ; j++)
                       ~^~~~~~~~~~~~
toy.cpp:97:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int i(0) ; i<sums.size() ; i++)
                   ~^~~~~~~~~~~~
#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...