結果
問題 | No.2921 Seated in Classroom |
ユーザー |
![]() |
提出日時 | 2024-10-12 15:04:23 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 421 ms / 2,000 ms |
コード長 | 216 bytes |
コンパイル時間 | 687 ms |
コンパイル使用メモリ | 65,880 KB |
最終ジャッジ日時 | 2025-02-24 17:52:03 |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 |
ソースコード
#include <iostream> using namespace std; typedef long long ll; int main(){ int t; cin >> t; while(t){ t--; ll n,m; cin >> n >> m; cout << max((n + 3)/4,(n + m + 7)/8) << "\n"; } }