結果
| 問題 |
No.2921 Seated in Classroom
|
| コンテスト | |
| ユーザー |
Andrew8128
|
| 提出日時 | 2024-10-12 14:35:41 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 525 bytes |
| コンパイル時間 | 2,910 ms |
| コンパイル使用メモリ | 242,496 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-12 14:35:46 |
| 合計ジャッジ時間 | 3,756 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 5 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, x, y) for (auto i = (x); i < (y); i++)
#define RREP(i, x, y) for (auto i = (y) - 1; (x) <= i; i--)
#define ALL(x) (x).begin(), (x).end()
#pragma GCC optimize("O3")
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
int T;
cin >> T;
while(T--){
int N, M;
cin >> N >> M;
cout << max((N+1)/2, (N+M+3)/4) << "\n";
}
return 0;
}
/*
File : ~/yukicoder/midoriika_3rd/C.cpp
Date : 2024/10/12
Time : 14:33:27
*/
Andrew8128