結果

問題 No.354 メルセンヌ素数
ユーザー naimonon77naimonon77
提出日時 2016-04-03 22:59:56
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 2,030 bytes
コンパイル時間 1,952 ms
コンパイル使用メモリ 169,272 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-10 00:06:05
合計ジャッジ時間 2,456 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,816 KB
testcase_01 AC 2 ms
6,940 KB
testcase_02 AC 2 ms
6,940 KB
testcase_03 AC 2 ms
6,940 KB
testcase_04 AC 2 ms
6,944 KB
testcase_05 AC 1 ms
6,944 KB
testcase_06 AC 2 ms
6,944 KB
testcase_07 AC 2 ms
6,940 KB
testcase_08 AC 2 ms
6,940 KB
testcase_09 AC 1 ms
6,940 KB
testcase_10 AC 2 ms
6,940 KB
testcase_11 AC 1 ms
6,940 KB
testcase_12 AC 2 ms
6,940 KB
testcase_13 AC 2 ms
6,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
 
#include "bits/stdc++.h"
#include <vector>
#include <set>
#include <string>
#include <queue>
#include <list>
#define REP(i,a,b) for(i=a;i<b;++i)
#define rep(i,n) REP(i,0,n)
#define ll long long
#define ull unsigned ll
typedef long double ld;
#define SQR(X)  ( (X)*(X) )
#define CUBE(X) ( (X)*(X)*(X) )
#define ALL(a) (a).begin(),(a).end()
// #define int ll
#define ifnot(a) if(not a)
#define dump(x)  cerr << #x << " = " << (x) << endl
using namespace std;
 
 
void reader(int &a){scanf("%d",&a);};
void reader(double &a){scanf("%lf",&a);};
void reader(char a[]){scanf("%s",a);};
// void reader(string& a){cin >> a;};
template<class T,class U>
void reader(T& t,U& u){
  reader(t); reader(u);
}
template<class T,class U,class V>
void reader(T& t,U& u,V& v){
  reader(t); reader(u); reader(v);
}
 
void writer(int a,char c) {printf("%d",a); putchar(c);}
void writer(double a,char c) {printf("%.20lf",a); putchar(c);}
void writer(char a[]) {printf("%s",a);};
void writer(char a[],char c) {printf("%s",a);putchar(c);};
void writer(char a,char c) {putchar(a); putchar(c);};
template<class T>
void writerLn(T t){
  writer(t,'\n');
}
template<class T,class U>
void writerLn(T t,U u){
  writer(t,' ');
  writer(u,'\n');
}
template<class T,class U,class V>
void writerLn(T t,U u,V v){
  writer(t,' '); 
  writer(u,' '); 
  writer(v,'\n'); 
}
template<class T> 
void writerArr(T x[], int n){
  int i;if(!n){putchar('\n');return;}
  rep(i,n-1) writer(x[i],' ');
  writer(x[n-1],'\n');
}
template<class T> 
void writerVec(vector<T> x,int n){
  int i;if(!n){putchar('\n');return;}
  rep(i,n-1) writer(x[i],' ');
  writer(x[n-1],'\n');
}
 
vector<std::string> split(const std::string &str, char sep)
{
    std::vector<std::string> v;
    std::stringstream ss(str);
    std::string buffer;
    while( std::getline(ss, buffer, sep) ) {
        v.push_back(buffer);
    }
    return v;
}
 
bool test = 1;
 
signed main() {
  int i,j;
  int p; cin >> p;
  cout << p << endl;
  return 0;
}
0