結果
| 問題 |
No.744 循環小数N桁目 Easy
|
| コンテスト | |
| ユーザー |
HayatoY
|
| 提出日時 | 2018-10-19 21:24:32 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 394 bytes |
| コンパイル時間 | 613 ms |
| コンパイル使用メモリ | 67,796 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-18 19:46:48 |
| 合計ジャッジ時間 | 1,163 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
ソースコード
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
int n;
cin >> n;
n = n % 6;
if(n == 1){
cout << 2 << endl;
}else if(n == 2){
cout << 8 << endl;
}else if(n == 3){
cout << 5 << endl;
}else if(n == 4){
cout << 7 << endl;
}else if(n == 5){
cout << 1 << endl;
}else if(n == 0){
cout << 4 << endl;
}
return 0;
}
HayatoY