結果

問題 No.744 循環小数N桁目 Easy
コンテスト
ユーザー hakuchanizkm
提出日時 2018-12-31 14:25:31
言語 C++14
(gcc 15.3.0 + boost 1.92.0 + ACL)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 421 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 412 ms
コンパイル使用メモリ 106,680 KB
実行使用メモリ 9,776 KB
最終ジャッジ日時 2026-10-12 15:02:53
合計ジャッジ時間 1,377 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <iostream>
#include<string>
#include<cmath>
#include<algorithm>
#include<cctype>
#include<queue>
#include<stack>
#include<stdio.h>
#include<vector>
#include<set>
#include<map>
#include<iomanip>
#define rep(i,n) for(int i=0;i<n;i++)
typedef int long long ll;
using namespace std;
int main(){
    
    int n;
    cin>>n;
    int zyu[6]={2,8,5,7,1,4};
    cout<<zyu[n%6==0?6:n%6-1]<<endl;
    
    
    
return 0;
}
0