Skip to content

Commit d4a0dde

Browse files
authored
1520B
1 parent f8e963a commit d4a0dde

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Ordinary_Numbers.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ int main(){
55
cin>>test;
66
while(test--)
77
{
8-
long long n, count=0, start;
8+
long long n, count=0, initialization;
99
cin >> n;
1010
for(int i=1; i<=9; i++)
1111
{
12-
start=i;
13-
while(start<=n)
12+
initialization=i;
13+
while(initialization<=n)
1414
{
1515
count++;
16-
start=start*10+i;
16+
initialization=initialization*10+i;
1717
}
1818
}
1919
cout << count << endl;

0 commit comments

Comments
 (0)