QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#431369#502. Yule LadsNevll0 1ms3912kbC++14252b2024-06-05 13:48:002024-06-05 13:48:01

Judging History

你现在查看的是最新测评结果

  • [2024-06-05 13:48:01]
  • 评测
  • 测评结果:0
  • 用时:1ms
  • 内存:3912kb
  • [2024-06-05 13:48:00]
  • 提交

answer

# include <bits/stdc++.h>
# define ll long long
# define ld double
# define fi first
# define se second
# define pii pair<int, int>
using namespace std;

int main() {
	ll N;
	scanf("%lld", &N);
	printf("%lld\n", N - ((ll) sqrt(N)) + 1ll);
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 15
Accepted
time: 0ms
memory: 3768kb

input:

1

output:

1

result:

ok single line: '1'

Test #2:

score: 0
Accepted
time: 1ms
memory: 3912kb

input:

2

output:

2

result:

ok single line: '2'

Test #3:

score: 0
Accepted
time: 0ms
memory: 3868kb

input:

3

output:

3

result:

ok single line: '3'

Test #4:

score: 0
Accepted
time: 1ms
memory: 3908kb

input:

4

output:

3

result:

ok single line: '3'

Test #5:

score: 0
Accepted
time: 0ms
memory: 3748kb

input:

5

output:

4

result:

ok single line: '4'

Test #6:

score: 0
Accepted
time: 0ms
memory: 3824kb

input:

6

output:

5

result:

ok single line: '5'

Test #7:

score: 0
Accepted
time: 0ms
memory: 3868kb

input:

7

output:

6

result:

ok single line: '6'

Test #8:

score: -15
Wrong Answer
time: 1ms
memory: 3848kb

input:

8

output:

7

result:

wrong answer 1st lines differ - expected: '6', found: '7'

Subtask #2:

score: 0
Skipped

Dependency #1:

0%

Subtask #3:

score: 0
Skipped

Dependency #1:

0%

Subtask #4:

score: 0
Skipped

Dependency #1:

0%

Subtask #5:

score: 0
Skipped

Dependency #1:

0%

Subtask #6:

score: 0
Skipped

Dependency #1:

0%

Subtask #7:

score: 0
Skipped

Dependency #1:

0%