Submission #14494816


Source Code Expand

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define ll long long
#define vec_rep(itr,v) for(auto itr = v.begin(); itr != v.end(); ++itr)

int main(void){
    int N;
    cin >> N;
    ll ans = 0; 
    ll count = 0;
    while(1){
        count += N;
        ans++;
        if(count %360 == 0)break;
    }
    cout << ans << endl;
    return 0;
}

Submission Info

Submission Time
Task A - Takahashikun, The Strider
User tubotu
Language C++ (GCC 9.2.1)
Score 200
Code Size 401 Byte
Status AC
Exec Time 11 ms
Memory 3564 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 11 ms 3428 KiB
02.txt AC 2 ms 3560 KiB
03.txt AC 2 ms 3536 KiB
04.txt AC 2 ms 3432 KiB
05.txt AC 2 ms 3564 KiB
06.txt AC 2 ms 3440 KiB
07.txt AC 2 ms 3564 KiB
08.txt AC 2 ms 3520 KiB
09.txt AC 2 ms 3432 KiB
s1.txt AC 2 ms 3440 KiB
s2.txt AC 2 ms 3432 KiB