Submission #25377

# Submission time Handle Problem Language Result Execution time Memory
25377 2017-06-21T19:05:38 Z Parthib_Gupta Aliens (IOI16_aliens) C++14
0 / 100
0 ms 2024 KB
#include "aliens.h"
#include "bits/stdc++.h"

long long take_photos(int n, int m, int k, std::vector<int> r, std::vector<int> c) {
    sort(r.begin(), r.end());

    long long x = r[k];
    long long x2 = r.back();

    return (long long)(((x2-x + 1) * (x2-x + 1)) + k);
}


# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 2024 KB Wrong answer: output = 2, expected = 4
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 2024 KB Wrong answer: output = 2, expected = 1
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 2024 KB Wrong answer: output = 2, expected = 4
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 2024 KB Wrong answer: output = 2, expected = 4
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 2024 KB Wrong answer: output = 2, expected = 4
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 2024 KB Wrong answer: output = 2, expected = 4
2 Halted 0 ms 0 KB -