結果
| 問題 | No.744 循環小数N桁目 Easy |
| コンテスト | |
| ユーザー |
makonagix
|
| 提出日時 | 2018-10-29 21:47:03 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 201µs | |
| コード長 | 414 bytes |
| 記録 | |
| コンパイル時間 | 433 ms |
| コンパイル使用メモリ | 95,332 KB |
| 実行使用メモリ | 9,872 KB |
| 最終ジャッジ日時 | 2026-09-26 14:26:35 |
| 合計ジャッジ時間 | 1,614 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
#include <iostream>
#include <math.h>
#include <string>
#include <algorithm>
#include <set>
#include <queue>
#include <stack>
#include <utility>
#include <tuple>
using namespace std;
const double pi = acos(-1);
#define nyan cout<<"(=^•ω•^=)"<<endl;
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
int a[6]={4,2,8,5,7,1};
signed main(){
int n;cin>>n;
cout<<a[n%6]<<endl;
return 0;
}
makonagix