結果

問題 No.2921 Seated in Classroom
ユーザー cled0328cled0328
提出日時 2024-10-12 14:38:42
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 376 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 2,035 ms
コンパイル使用メモリ 199,056 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-12 14:38:48
合計ジャッジ時間 4,566 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 350 ms
6,816 KB
testcase_01 AC 198 ms
6,816 KB
testcase_02 AC 159 ms
6,816 KB
testcase_03 AC 376 ms
6,820 KB
testcase_04 AC 340 ms
6,820 KB
testcase_05 AC 2 ms
6,816 KB
testcase_06 AC 2 ms
6,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
    int t;
    cin>>t;
    while(t--){
        long long n,m;cin>>n>>m;
        long long n1=(n+3)/4;
        long long n3=(n+m+7)/8;
        cout<<max(n1,n3)<<"\n";
    }
}
0