Submission #14502746


Source Code Expand

#include <iostream>
using namespace std;
int main() {
  int x;
  cin >> x;
  
  int a,b;
  a = 0;
  b = 0;
  while (1) {
    a += (360 + b) / x;
    b = (360 + b) % x;
    if (b == 0) break;
  }
  cout << a;
  
  return 0;
}

Submission Info

Submission Time
Task A - Takahashikun, The Strider
User oninobu
Language C++ (GCC 9.2.1)
Score 200
Code Size 241 Byte
Status AC
Exec Time 6 ms
Memory 3628 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 2
AC × 11
Set Name Test Cases
Sample s1.txt, s2.txt
All 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, s1.txt, s2.txt
Case Name Status Exec Time Memory
01.txt AC 6 ms 3556 KiB
02.txt AC 2 ms 3332 KiB
03.txt AC 2 ms 3516 KiB
04.txt AC 2 ms 3552 KiB
05.txt AC 1 ms 3624 KiB
06.txt AC 2 ms 3528 KiB
07.txt AC 2 ms 3552 KiB
08.txt AC 2 ms 3476 KiB
09.txt AC 2 ms 3552 KiB
s1.txt AC 2 ms 3548 KiB
s2.txt AC 2 ms 3628 KiB