Skip to content

Instantly share code, notes, and snippets.

View wall-g's full-sized avatar

Gaurav Singh wall-g

View GitHub Profile
<?php
namespace Plugins\Coinpayments\Controllers;
use App\Core\BaseController;
use App\Helpers\UserActionLogHelper;
use App\Models\File;
use App\Models\Order;
use App\Models\PaymentLog;
use App\Models\User;
#include <bits/stdc++.h>
#define int long long
using namespace std;
const int M = 1e9 + 7;
bool cmp(pair<pair<int, string>, int> &a, pair<pair<int, string>, int> &b)
{
return a.second < b.second;
}
#include<bits/stdc++.h>
#define int unsigned long long
#define mod 1000000007
using namespace std;
int32_t main(){
int t;
cin>>t;
while(t--){
int n;
cin>>n;