# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
757322 | The_Samurai | Brunhilda’s Birthday (BOI13_brunhilda) | C++17 | 1096 ms | 79848 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "bits/stdc++.h"
using namespace std;
bool isPrime(int n) {
for (int i = 2; i * i <= n; i++) {
if (n % i == 0) {
return false;
}
}
return n > 1;
}
int INF = 1e9;
int main() {
clock_t startTime = clock();
// int N = 1e4;
// vector<int> g(N + 1);
// vector<int> dp(N + 1, (int)1e9);
// primes = {5, 11, 19};
// dp[0] = 0;
// for (int i = 1; i <= N; i++) {
// for (int p: primes) {
// dp[i] = min(dp[i], dp[i - i % p] + 1);
// }
// }
// for (int i = 1; i <= 100; i++) {
// cout << i << " -> " << dp[i] << endl;
// }
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |