Submission

Status:

----------

Subtask/Task Score:

0/100

Score: 0

User: Fifaxmb

Problemset: ทางเชื่อม

Language: cpp

Time: 0.283 second

Submitted On: 2026-05-09 11:19:55

#include<bits/stdc++.h>
using namespace std;
#define Fifa67king ios::sync_with_stdio(0);cin.tie(0);
const int mod = 1e9 + 7;
int main(){
    Fifa67king;
    int n;cin >> n;
    while(n --){
        int l;cin >> l;
        int f = l * 2;
        char c;
        while(f --){
            cin >> c;
        }
        cout << (1 << (l + 1)) % mod <<'\n';
    }
}