結果
問題 |
No.469 区間加算と一致検索の問題
|
ユーザー |
|
提出日時 | 2016-12-14 01:53:58 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 417 bytes |
コンパイル時間 | 523 ms |
コンパイル使用メモリ | 65,300 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-14 07:39:39 |
合計ジャッジ時間 | 5,806 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 1 WA * 48 |
ソースコード
// WA #include <iostream> #include <vector> #define repeat(i,n) for (int i = 0; (i) < int(n); ++(i)) using namespace std; int main() { int n, q; cin >> n >> q; int last = 0; repeat (t,q) { char c; cin >> c; if (c == '!') { int l, r, k; cin >> l >> r >> k; last = t+1; } else if (c == '?') { cout << last << endl; } } return 0; }