結果
| 問題 | No.3534 Make Many Fences |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-08 22:42:09 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 341 bytes |
| 記録 | |
| コンパイル時間 | 2,127 ms |
| コンパイル使用メモリ | 329,388 KB |
| 実行使用メモリ | 16,192 KB |
| 最終ジャッジ日時 | 2026-05-08 22:42:33 |
| 合計ジャッジ時間 | 5,696 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 1 WA * 2 TLE * 1 -- * 5 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
void answer() {
int n, m;
cin >> n >> m;
while (n > (2 * m)) {
n -= 2;
m += 4;
}
cout << 3 * (n / 4) << endl;
return;
}
int main() {
int t;
cin >> t;
for (int i = 0; i < t; i++) {
answer();
}
return 0;
}