結果
問題 |
No.3175 転移迷宮 (Easy)
|
ユーザー |
![]() |
提出日時 | 2025-03-01 17:49:41 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 584 bytes |
コンパイル時間 | 7,958 ms |
コンパイル使用メモリ | 260,688 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2025-03-01 17:49:51 |
合計ジャッジ時間 | 9,254 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 44 |
ソースコード
#include "testlib.h" #include <cassert> const int MIN_N = 1; const int MAX_N = 500; const int SUM_N = 500; const int MIN_K = 1; const int MAX_K = 20; int main(int argc, char** argv) { registerValidation(argc, argv); const int t = inf.readInt(MIN_N, MAX_N, "T"); inf.readEoln(); int sum = 0; for (int i = 0; i < t; ++i) { const int n = inf.readInt(MIN_N, MAX_N); inf.readSpace(); const int k = inf.readInt(MIN_K, MAX_K); inf.readEoln(); sum += n; assert(sum <= SUM_N); } inf.readEof(); return 0; }