Submission #68706


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define vi vector<int>
#define all(v) v.begin(),v.end()
#define fi first
#define se second
#define P pair<int,int>
#define mp(a,b) make_pair(a,b)
#define pb(a) push_back(a)
int mod=1e9+7;
int main(){
cin.tie(nullptr);
ios_base::sync_with_stdio(false);
ll n,k; cin>>n>>k;
ll f=pow(10,n-1);
cout<<(f*10-1)/k-(f-1)/k<<"\n";
return 0;
}

ステータス

項目 データ
問題 1204 - Password
ユーザー名 ei2005
投稿日時 2021-10-14 18:29:48
言語 C++17
状態 Accepted
得点 10
ソースコード長 454 Byte
最大実行時間 70 ms
最大メモリ使用量 780 KB

セット

セット 得点 Cases
1 ALL 10 / 10 in*

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in00-1.txt AC 70 ms 604 KB
1
in00-2.txt AC 16 ms 428 KB
1
in00-3.txt AC 21 ms 508 KB
1
in01.txt AC 26 ms 588 KB
1
in02.txt AC 18 ms 548 KB
1
in03.txt AC 23 ms 632 KB
1
in04.txt AC 20 ms 456 KB
1
in05.txt AC 24 ms 660 KB
1
in06.txt AC 23 ms 740 KB
1
in07.txt AC 26 ms 572 KB
1
in08.txt AC 23 ms 524 KB
1
in09.txt AC 20 ms 608 KB
1
in10.txt AC 21 ms 568 KB
1
in11.txt AC 20 ms 524 KB
1
in12.txt AC 23 ms 740 KB
1
in13.txt AC 22 ms 696 KB
1
in14.txt AC 21 ms 652 KB
1
in15.txt AC 23 ms 480 KB
1
in16.txt AC 22 ms 696 KB
1
in17.txt AC 25 ms 780 KB
1
in18.txt AC 20 ms 604 KB
1
in19.txt AC 25 ms 692 KB
1
in20.txt AC 21 ms 648 KB
1
sample01.txt AC 19 ms 608 KB
sample02.txt AC 34 ms 696 KB