結果
| 問題 |
No.744 循環小数N桁目 Easy
|
| コンテスト | |
| ユーザー |
nyan68682154
|
| 提出日時 | 2019-06-14 23:21:48 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 382 bytes |
| コンパイル時間 | 619 ms |
| コンパイル使用メモリ | 70,276 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-14 13:44:16 |
| 合計ジャッジ時間 | 1,234 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
//neko.cpp
#include<iostream>
#include<string>
#include<math.h>
#include<stdlib.h>
#include<string>
#include<cstdio>
#include<stack>
#include<algorithm>
#include <map>
#include <stdio.h>
#include <vector>
#include <stdio.h>
#include <time.h>
using namespace std;
int main() {
int a[6] = { 2,8,5,7,1,4 };
int b;
cin >> b;
b = b % 6;
if (b == 0) {
b = 6;
}
cout << a[b-1];
}
nyan68682154