提出 #14495446


ソースコード 拡げる

#include<bits/stdc++.h>
using namespace std;


int main(){
    ios::sync_with_stdio(0);
    cin.tie(0);

    int n;
    cin>>n;

    int g = __gcd(n, 360);
    int ans = n*360/g;
    cout<<ans/n;
    
}

提出情報

提出日時
問題 A - Takahashikun, The Strider
ユーザ hetshah1998
言語 C++ (GCC 9.2.1)
得点 200
コード長 217 Byte
結果 AC
実行時間 7 ms
メモリ 3648 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 2
AC × 11
セット名 テストケース
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
ケース名 結果 実行時間 メモリ
01.txt AC 7 ms 3620 KiB
02.txt AC 2 ms 3520 KiB
03.txt AC 2 ms 3484 KiB
04.txt AC 3 ms 3592 KiB
05.txt AC 1 ms 3620 KiB
06.txt AC 2 ms 3648 KiB
07.txt AC 3 ms 3620 KiB
08.txt AC 2 ms 3544 KiB
09.txt AC 2 ms 3540 KiB
s1.txt AC 2 ms 3536 KiB
s2.txt AC 3 ms 3528 KiB