結果

問題 No.1550 nullくんの町清掃 / null's Town Cleaning
ユーザー ethan_hethan_h
提出日時 2021-06-19 11:48:20
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 1,424 bytes
コンパイル時間 2,753 ms
コンパイル使用メモリ 164,056 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-05 00:43:27
合計ジャッジ時間 2,803 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

//ethan_h
#include<bits/stdc++.h>
using namespace std;
#define ll long long
const int mod = (int)1e9 + 7;
int mult(int a, int b) {
    return (1LL * a * b) % mod;
}
int sum(int a, int b) {
    int s = a + b;
    if (s >= mod) s -= mod;
    return s;
}
const int maxN = 2e6 + 10;
int inv[maxN], fact[maxN], invfact[maxN];
int cnk(int n, int k) {
    if (n < k || k < 0) return 0;
    return mult(fact[n], mult(invfact[k], invfact[n - k]));
}
void init(){
inv[1]=1;
fact[0]=invfact[0]=fact[1]=invfact[1]=1;
for(int i=2;i<maxN;i++){
inv[i]=mult(inv[mod%i],mod-mod/i);
fact[i]=mult(fact[i-1],i);
invfact[i]=mult(invfact[i-1],inv[i]);}}
/*
void test(){
ll n,m,s,v,k;cin>>n;
vector<ll>a(n),b(n),c(n);
for(ll i=0;i<n;i++){cin>>a[i];}
sort(a.begin(),a.end());
b=a;
c=a;
ll mi=INT_MAX;
for(ll j=1;j<n;j++){
    if(a[j]-a[j-1]<=mi){
        mi=a[j]-a[j-1];
       m=a[j];
       s=a[j-1];
       v=j;
       k=j-1;
    }
}
a.erase(a.begin()+v);
a.erase(a.begin()+v);
for(int i=0;i<a.size();i++){
    cout<<a[i];
}
//a.erase()
/*
ll cc=0,dd=0;
for(ll i=1;i<n;i++){
   if(b[i]>=b[i-1]){
    cc++;
   }
   if(c[i]>=c[i-1]){
    dd++;
   }
}

if(cc>=dd){
    for(int i=0;i<n;i++){
        cout<<b[i]<<" ";    }}
        else{
             for(int i=0;i<n;i++){
        cout<<c[i]<<" ";    }
        }
cout<<endl;


}
*/
int main(){
ios_base::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);

ll t;cin>>t;
cout<<t%1000000007;
return 0;}
0