結果
| 問題 | No.2283 Prohibit Three Consecutive |
| コンテスト | |
| ユーザー |
👑 potato167
|
| 提出日時 | 2023-04-28 03:40:13 |
| 言語 | C++17(gcc12) (gcc 12.4.0 + boost 1.90.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 512 bytes |
| 記録 | |
| コンパイル時間 | 6,389 ms |
| コンパイル使用メモリ | 336,548 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-06-30 10:58:12 |
| 合計ジャッジ時間 | 6,965 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | RE * 13 |
ソースコード
#include <bits/stdc++.h>
#include "testlib.h"
using namespace std;
const int MIN_T=1;
const int MAX_T=50'000;
const int MIN_N=3;
const int MAX_N=100'000;
const int MAX_S=200'000;
int main(int argc,char** argv){
registerValidation(argc,argv);
int T=inf.readInt(MIN_T,MAX_T);
inf.readEoln();
int S=0;
for(int i=0;i<T;i++){
int N=inf.readInt(MIN_N,MAX_N);
inf.readEoln();
S+=N;
ensure(S<=MAX_S);
string s=inf.readString("[0 1 ?]");
ensure((int)(s.size())==N);
inf.readEoln();
}
inf.readEof();
}
potato167