Skip to content

Commit f4d2b93

Browse files
committed
Create 1702A-RoundDownThePrice.cpp
1 parent 037c376 commit f4d2b93

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

1702A-RoundDownThePrice.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#include <cstdio>
2+
typedef long long ll;
3+
4+
int main(){
5+
6+
long t; scanf("%ld", &t);
7+
while(t--){
8+
ll m; scanf("%lld", &m);
9+
ll d(1); while(10 * d <= m){d *= 10;}
10+
printf("%lld\n", m - d);
11+
}
12+
13+
}

0 commit comments

Comments
 (0)