結果
| 問題 |
No.3121 Prime Dance
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-17 11:38:33 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 1,167 bytes |
| コンパイル時間 | 9,102 ms |
| コンパイル使用メモリ | 352,252 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2025-04-17 11:38:45 |
| 合計ジャッジ時間 | 10,162 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 21 |
ソースコード
#include "testlib.h"
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll min_hw = 1;
const ll max_hw = 40;
int main(){
registerValidation();
ll h = inf.readLong(min_hw, max_hw);
inf.readSpace();
ll w = inf.readLong(min_hw, max_hw);
inf.readEoln();
ll sx = inf.readLong(1, h);
inf.readSpace();
ll sy = inf.readLong(1, w);
inf.readEoln();
ll gx = inf.readLong(1, h);
inf.readSpace();
ll gy = inf.readLong(1, w);
inf.readEoln();
assert(sx != gx || sy != gy);
vector<string> s(h);
for (int i = 0; i < h; i++) {
s[i] = inf.readString();
assert(s[i].size() == w);
for(char c : s[i]) {
assert(c == '.' || c == '#' || c == 'S' || c == 'G');
}
}
inf.readEoln();
assert(s[sx - 1][sy - 1] == 'S');
assert(s[gx - 1][gy - 1] == 'G');
for (int i = 0; i < h; i++) {
for (int j = 0; j < w; j++) {
if(s[i][j] == 'S') {
assert(i == sx - 1 && j == sy - 1);
}
if(s[i][j] == 'G') {
assert(i == gx - 1 && j == gy - 1);
}
}
}
}