Submission #56226


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include<bits/stdc++.h>
#define INF 2000000000;
using namespace std;
int m[10000000];
int main(){
long long a,b,c=1,d,e;
cin>>a>>b;
for(long long i=0;i<a;i++){
c=c*10;
}
if(a==1) c--;
d=c/b;
c=c/10;
e=c/b;
cout<<d-e<<"\n";
return(0);
}

ステータス

項目 データ
問題 1204 - Password
ユーザー名 Miran
投稿日時 2019-11-07 17:06:42
言語 C++
状態 Accepted
得点 10
ソースコード長 281 Byte
最大実行時間 28 ms
最大メモリ使用量 664 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
in00-1.txt AC 22 ms 604 KB
1
in00-2.txt AC 28 ms 572 KB
1
in00-3.txt AC 25 ms 544 KB
1
in01.txt AC 16 ms 644 KB
1
in02.txt AC 21 ms 608 KB
1
in03.txt AC 20 ms 448 KB
1
in04.txt AC 18 ms 548 KB
1
in05.txt AC 23 ms 516 KB
1
in06.txt AC 19 ms 488 KB
1
in07.txt AC 16 ms 460 KB
1
in08.txt AC 21 ms 564 KB
1
in09.txt AC 19 ms 664 KB
1
in10.txt AC 23 ms 504 KB
1
in11.txt AC 23 ms 604 KB
1
in12.txt AC 18 ms 580 KB
1
in13.txt AC 23 ms 548 KB
1
in14.txt AC 22 ms 644 KB
1
in15.txt AC 20 ms 616 KB
1
in16.txt AC 23 ms 588 KB
1
in17.txt AC 17 ms 560 KB
1
in18.txt AC 23 ms 532 KB
1
in19.txt AC 18 ms 504 KB
1
in20.txt AC 22 ms 480 KB
1
sample01.txt AC 23 ms 576 KB
sample02.txt AC 23 ms 548 KB