提出 #74078334


ソースコード 拡げる

#include <bits/stdc++.h>

using namespace std;

int main() {
    int h, w, q;
    cin >> h >> w >> q;
    while (q--) {
        int t, v; cin >> t >> v;
        if (t == 1) {
            cout << v*w << '\n';
            h -= v;
        } else {
            cout << v*h << '\n';
            w -= v;
        }
    }
    return 0;
}

提出情報

提出日時
問題 B - Deconstruct Chocolate
ユーザ erekle
言語 C++ IOI-Style(GNU++20) (GCC 14.2.0)
得点 200
コード長 349 Byte
結果 AC
実行時間 0 ms
メモリ 1676 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 1
AC × 21
セット名 テストケース
Sample sample00.txt
All sample00.txt, testcase00.txt, testcase01.txt, testcase02.txt, testcase03.txt, testcase04.txt, testcase05.txt, testcase06.txt, testcase07.txt, testcase08.txt, testcase09.txt, testcase10.txt, testcase11.txt, testcase12.txt, testcase13.txt, testcase14.txt, testcase15.txt, testcase16.txt, testcase17.txt, testcase18.txt, testcase19.txt
ケース名 結果 実行時間 メモリ
sample00.txt AC 0 ms 1676 KiB
testcase00.txt AC 0 ms 1676 KiB
testcase01.txt AC 0 ms 1676 KiB
testcase02.txt AC 0 ms 1676 KiB
testcase03.txt AC 0 ms 1676 KiB
testcase04.txt AC 0 ms 1676 KiB
testcase05.txt AC 0 ms 1676 KiB
testcase06.txt AC 0 ms 1676 KiB
testcase07.txt AC 0 ms 1676 KiB
testcase08.txt AC 0 ms 1676 KiB
testcase09.txt AC 0 ms 1676 KiB
testcase10.txt AC 0 ms 1676 KiB
testcase11.txt AC 0 ms 1676 KiB
testcase12.txt AC 0 ms 1676 KiB
testcase13.txt AC 0 ms 1676 KiB
testcase14.txt AC 0 ms 1676 KiB
testcase15.txt AC 0 ms 1676 KiB
testcase16.txt AC 0 ms 1676 KiB
testcase17.txt AC 0 ms 1676 KiB
testcase18.txt AC 0 ms 1676 KiB
testcase19.txt AC 0 ms 1676 KiB