結果
問題 |
No.149 碁石の移動
|
ユーザー |
|
提出日時 | 2020-09-16 15:43:31 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 334 bytes |
コンパイル時間 | 1,576 ms |
コンパイル使用メモリ | 190,756 KB |
最終ジャッジ日時 | 2025-01-14 15:14:16 |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 4 WA * 9 |
ソースコード
#include <bits/stdc++.h> using namespace std; int aw, ab, bw, bb, c, d; void input() { cin >> aw >> ab >> bw >> bb >> c >> d; } void solve() { int tmp = min(aw, c); aw -= tmp; bw += tmp; aw += min(d, bw); cout << aw << endl; } int main() { ios::sync_with_stdio(false); cin.tie(0); input(); solve(); getchar(); }