結果
| 問題 |
No.2641 draw X
|
| コンテスト | |
| ユーザー |
noya2
|
| 提出日時 | 2024-02-13 21:13:27 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 606 bytes |
| コンパイル時間 | 8,636 ms |
| コンパイル使用メモリ | 337,984 KB |
| 実行使用メモリ | 9,432 KB |
| 最終ジャッジ日時 | 2024-09-28 18:37:47 |
| 合計ジャッジ時間 | 9,533 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 41 |
ソースコード
#include<bits/stdc++.h>
#include"testlib.h"
using namespace std;
using ll = long long;
const ll HWmin = 1, HWmax = 1'000'000;
int main(){
registerValidation();
ll H = inf.readLong(HWmin,HWmax);
inf.readSpace();
ll W = inf.readLong(HWmin,HWmax);
inf.readEoln();
inf.ensuref(H*W <= HWmax,"H x W > 1'000'000");
for (ll i = 0; i < H; i++){
string s = inf.readString();
inf.ensuref((ll)(s.size()) == W, "S[i] size is not W");
for (auto c : s){
inf.ensuref(c == '#' || c == '.', "S[i][j] must be '#' or '.'");
}
}
inf.readEof();
}
noya2