# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
742203 | rainboy | 생물 실험 (IZhO13_expgorl) | C++17 | 0 ms | 212 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <math.h>
#include <stdio.h>
#include <string.h>
#define N 10000
#define INF 1e12
double min(double a, double b) { return a < b ? a : b; }
double max(double a, double b) { return a > b ? a : b; }
long long dot2(int x1, int y1, int x2, int y2) {
return (long long) x1 * x2 + (long long) y1 * y2;
}
long long dot(int x0, int y0, int x1, int y1, int x2, int y2) {
return dot2(x1 - x0, y1 - y0, x2 - x0, y2 - y0);
}
int main() {
static char cc[N + 1];
static int xx[N + 1], yy[N + 1];
int n, k, k_, i, x1, y1, x2, y2, x, y, x_, y_;
double d, mn, mx;
scanf("%d%s%d%d%d%d", &k, cc, &x1, &y1, &x2, &y2), n = strlen(cc), x_ = x2 - x1, y_ = y2 - y1;
x = y = 0;
for (i = 0; i <= n; i++) {
if (cc[i] == 'L')
x--;
if (cc[i] == 'R')
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |