QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#522371 | #7813. 密码锁 | sutu | 0 | 0ms | 3740kb | C++20 | 325b | 2024-08-16 22:01:29 | 2024-08-16 22:01:29 |
answer
#include <bits/stdc++.h>
using namespace std;
#define endl "\n"
typedef long long ll;
void solved() {
int n;
cin >> n;
cout << n * 9 + (n - 1) * 9 << endl;
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
/*int t = 1;
cin >> t;
while (t--)*/
solved();
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Pretests
Final Tests
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3620kb
input:
1 4 9 8 2 5
output:
9
result:
wrong answer 1st lines differ - expected: '81', found: '9'
Test #2:
score: 0
Wrong Answer
time: 0ms
memory: 3728kb
input:
1 7 7 5 2 0
output:
9
result:
wrong answer 1st lines differ - expected: '81', found: '9'
Test #3:
score: 0
Wrong Answer
time: 0ms
memory: 3612kb
input:
1 8 9 8 7 8
output:
9
result:
wrong answer 1st lines differ - expected: '81', found: '9'
Test #4:
score: 0
Wrong Answer
time: 0ms
memory: 3664kb
input:
2 0 3 7 3 8 0 3 6 7 8
output:
27
result:
wrong answer 1st lines differ - expected: '6', found: '27'
Test #5:
score: 0
Wrong Answer
time: 0ms
memory: 3684kb
input:
2 7 3 7 9 7 3 3 7 9 3
output:
27
result:
wrong answer 1st lines differ - expected: '2', found: '27'
Test #6:
score: 0
Wrong Answer
time: 0ms
memory: 3736kb
input:
4 8 6 9 9 4 8 6 8 9 4 8 6 7 9 4 8 6 1 9 4
output:
63
result:
wrong answer 1st lines differ - expected: '6', found: '63'
Test #7:
score: 0
Wrong Answer
time: 0ms
memory: 3676kb
input:
6 0 8 3 9 0 0 4 3 9 0 0 0 3 9 0 0 3 3 9 0 0 5 3 9 0 0 6 3 9 0
output:
99
result:
wrong answer 1st lines differ - expected: '4', found: '99'
Test #8:
score: 0
Wrong Answer
time: 0ms
memory: 3740kb
input:
7 2 2 5 6 3 1 8 5 6 3 2 8 7 6 3 2 8 6 6 3 2 8 8 6 3 2 1 5 6 3 2 8 9 6 3
output:
117
result:
wrong answer 1st lines differ - expected: '1', found: '117'
Test #9:
score: 0
Wrong Answer
time: 0ms
memory: 3664kb
input:
5 6 6 6 9 5 6 0 0 9 5 6 1 1 9 5 6 2 2 9 5 6 4 4 9 5
output:
81
result:
wrong answer 1st lines differ - expected: '5', found: '81'
Test #10:
score: 0
Wrong Answer
time: 0ms
memory: 3740kb
input:
8 9 0 8 6 0 9 5 2 6 0 9 0 7 0 4 9 0 9 6 0 3 0 7 6 0 9 0 7 6 7 4 0 7 6 0 9 8 7 6 0
output:
135
result:
wrong answer 1st lines differ - expected: '1', found: '135'