結果
| 問題 | No.2745 String Swap Battle |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-17 12:22:42 |
| 言語 | C++17(gcc12) (gcc 12.4.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 627 bytes |
| 記録 | |
| コンパイル時間 | 4,947 ms |
| コンパイル使用メモリ | 258,384 KB |
| 実行使用メモリ | 12,016 KB |
| 最終ジャッジ日時 | 2026-07-04 12:19:17 |
| 合計ジャッジ時間 | 6,186 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 18 |
ソースコード
#include "testlib.h"
#include<string>
#include<cassert>
using namespace std;
const int MIN_N = 2;
const int MAX_N = 100'000;
const int MAX_SUM_S = 200'000;
const int MIN_S = 2;
const int MAX_S = 100'000;
int main() {
registerValidation();
int N=inf.readInt(MIN_N,MAX_N);
inf.readEoln();
int sum_s=0;
for(int i = 0; i < N; i++) {
string s = inf.readString();
for(int j = 0; j < (int)s.size(); j++) {
assert('a' <= s[j] && s[j] <= 'z');
}
sum_s += s.size();
assert((int)s.size() <= MAX_S);
}
inf.readEof();
assert(sum_s <= MAX_SUM_S);
}