QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#731289#5578. Blueberry Wafflebeamishboys#AC ✓0ms3692kbC++23320b2024-11-10 01:47:252024-11-10 01:47:27

Judging History

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

  • [2024-11-10 01:47:27]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:3692kb
  • [2024-11-10 01:47:25]
  • 提交

answer

#include <iostream>
using namespace std;

int main() {
	int r, f; cin >> r >> f;

	// 180 / r deg per s, run for f seconds
	// (180 * f / r ) % 360 in (-90, 90)
	//

	if ( (180 * f / r) % 360 < 90 || (180 * f / r % 360) > 270 ) {
		cout << "up" << '\n';
	} else { cout << "down" << '\n'; }

	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3528kb

input:

10 20

output:

up

result:

ok single line: 'up'

Test #2:

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

input:

10 34

output:

down

result:

ok single line: 'down'

Test #3:

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

input:

10 47

output:

down

result:

ok single line: 'down'

Test #4:

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

input:

249 9462

output:

up

result:

ok single line: 'up'

Test #5:

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

input:

165 3795

output:

down

result:

ok single line: 'down'

Test #6:

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

input:

612 612

output:

down

result:

ok single line: 'down'

Test #7:

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

input:

278 8340

output:

up

result:

ok single line: 'up'

Test #8:

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

input:

267 4539

output:

down

result:

ok single line: 'down'

Test #9:

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

input:

357 2856

output:

up

result:

ok single line: 'up'

Test #10:

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

input:

490 7840

output:

up

result:

ok single line: 'up'

Test #11:

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

input:

408 5304

output:

down

result:

ok single line: 'down'

Test #12:

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

input:

501 3507

output:

down

result:

ok single line: 'down'

Test #13:

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

input:

882 882

output:

down

result:

ok single line: 'down'

Test #14:

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

input:

144 4608

output:

up

result:

ok single line: 'up'

Test #15:

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

input:

358 2506

output:

down

result:

ok single line: 'down'

Test #16:

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

input:

557 6684

output:

up

result:

ok single line: 'up'

Test #17:

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

input:

968 1936

output:

up

result:

ok single line: 'up'

Test #18:

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

input:

852 6816

output:

up

result:

ok single line: 'up'

Test #19:

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

input:

104 5635

output:

up

result:

ok single line: 'up'

Test #20:

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

input:

998 8295

output:

up

result:

ok single line: 'up'

Test #21:

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

input:

456 5963

output:

down

result:

ok single line: 'down'

Test #22:

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

input:

518 7276

output:

up

result:

ok single line: 'up'

Test #23:

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

input:

610 3313

output:

down

result:

ok single line: 'down'

Test #24:

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

input:

53 1221

output:

down

result:

ok single line: 'down'

Test #25:

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

input:

700 3028

output:

up

result:

ok single line: 'up'

Test #26:

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

input:

40 2015

output:

up

result:

ok single line: 'up'

Test #27:

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

input:

715 333

output:

up

result:

ok single line: 'up'

Test #28:

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

input:

734 8269

output:

down

result:

ok single line: 'down'

Test #29:

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

input:

662 9398

output:

up

result:

ok single line: 'up'

Test #30:

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

input:

925 4763

output:

down

result:

ok single line: 'down'

Test #31:

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

input:

12 2725

output:

down

result:

ok single line: 'down'

Test #32:

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

input:

829 1660

output:

up

result:

ok single line: 'up'

Test #33:

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

input:

724 6100

output:

up

result:

ok single line: 'up'

Test #34:

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

input:

179 5179

output:

down

result:

ok single line: 'down'

Test #35:

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

input:

393 8978

output:

down

result:

ok single line: 'down'

Test #36:

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

input:

28 3993

output:

down

result:

ok single line: 'down'

Test #37:

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

input:

302 4489

output:

down

result:

ok single line: 'down'

Test #38:

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

input:

971 8381

output:

down

result:

ok single line: 'down'

Test #39:

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

input:

503 9391

output:

down

result:

ok single line: 'down'

Test #40:

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

input:

443 7966

output:

up

result:

ok single line: 'up'

Test #41:

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

input:

767 6533

output:

down

result:

ok single line: 'down'

Test #42:

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

input:

167 9494

output:

down

result:

ok single line: 'down'

Test #43:

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

input:

750 8639

output:

up

result:

ok single line: 'up'

Test #44:

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

input:

787 9415

output:

up

result:

ok single line: 'up'

Test #45:

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

input:

106 9826

output:

down

result:

ok single line: 'down'

Test #46:

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

input:

12 1916

output:

up

result:

ok single line: 'up'

Test #47:

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

input:

981 6498

output:

down

result:

ok single line: 'down'

Test #48:

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

input:

933 656

output:

down

result:

ok single line: 'down'

Test #49:

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

input:

6929 4189

output:

down

result:

ok single line: 'down'

Test #50:

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

input:

9860 5592

output:

down

result:

ok single line: 'down'

Test #51:

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

input:

6939 8671

output:

down

result:

ok single line: 'down'

Test #52:

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

input:

240 9453

output:

down

result:

ok single line: 'down'

Test #53:

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

input:

5350 7827

output:

down

result:

ok single line: 'down'

Test #54:

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

input:

9531 8515

output:

down

result:

ok single line: 'down'

Test #55:

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

input:

2601 8661

output:

down

result:

ok single line: 'down'

Test #56:

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

input:

4324 4936

output:

down

result:

ok single line: 'down'

Test #57:

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

input:

3216 5827

output:

up

result:

ok single line: 'up'

Test #58:

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

input:

6046 1991

output:

up

result:

ok single line: 'up'

Test #59:

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

input:

3258 8744

output:

down

result:

ok single line: 'down'

Test #60:

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

input:

5718 3014

output:

down

result:

ok single line: 'down'

Test #61:

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

input:

2918 3029

output:

down

result:

ok single line: 'down'

Test #62:

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

input:

6727 3754

output:

down

result:

ok single line: 'down'

Test #63:

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

input:

8396 3083

output:

up

result:

ok single line: 'up'