Submission #3034790


Source Code Expand

#include<iostream>
#include<algorithm>
#include<cstring>
#include<stdio.h>
#include<math.h>
using namespace std;
int main()
{
	int nber=0;
    int n;
    bool b=true;
    cin >>n;
    for(int i=2;i<n-1;i++)
    {
        b=true;
 
        for( int j=2;j<=sqrt(i);j++)
        {    
            if(i%j==0)
            {
                b=false;
                break;
            }            
        }
 
        if( b )
        {
        	nber++;
            if (nber==n)
			  {cout<<i<<endl;return 0;}
        }
    }
	return 0;
}

Submission Info

Submission Time
Task A - 与えられた数より小さい素数の個数について
User luogu_bot3
Language C++ (GCC 5.4.1)
Score 0
Code Size 532 Byte
Status WA
Exec Time 2 ms
Memory 256 KB

Judge Result

Set Name All
Score / Max Score 0 / 100
Status
WA × 90
Set Name Test Cases
All 00_sample1, 00_sample2, 00_sample3, 10_testcase00, 10_testcase01, 10_testcase02, 10_testcase03, 10_testcase04, 10_testcase05, 10_testcase06, 10_testcase07, 10_testcase08, 10_testcase09, 10_testcase10, 10_testcase11, 10_testcase12, 10_testcase13, 10_testcase14, 10_testcase15, 10_testcase16, 10_testcase17, 10_testcase18, 10_testcase19, 10_testcase20, 10_testcase21, 10_testcase22, 10_testcase23, 10_testcase24, 10_testcase25, 10_testcase26, 10_testcase27, 10_testcase28, 10_testcase29, 10_testcase30, 10_testcase31, 10_testcase32, 10_testcase33, 10_testcase34, 10_testcase35, 10_testcase36, 10_testcase37, 10_testcase38, 10_testcase39, 10_testcase40, 10_testcase41, 10_testcase42, 10_testcase43, 10_testcase44, 10_testcase45, 10_testcase46, 10_testcase47, 10_testcase48, 10_testcase49, 10_testcase50, 10_testcase51, 10_testcase52, 10_testcase53, 10_testcase54, 10_testcase55, 10_testcase56, 10_testcase57, 10_testcase58, 10_testcase59, 10_testcase60, 10_testcase61, 10_testcase62, 10_testcase63, 10_testcase64, 10_testcase65, 10_testcase66, 10_testcase67, 10_testcase68, 10_testcase69, 10_testcase70, 10_testcase71, 10_testcase72, 10_testcase73, 10_testcase74, 10_testcase75, 10_testcase76, 10_testcase77, 10_testcase78, 10_testcase79, 10_testcase80, 10_testcase81, 10_testcase82, 10_testcase83, 10_testcase84, 10_testcase85, 10_testcase86
Case Name Status Exec Time Memory
00_sample1 WA 1 ms 256 KB
00_sample2 WA 1 ms 256 KB
00_sample3 WA 2 ms 256 KB
10_testcase00 WA 1 ms 256 KB
10_testcase01 WA 1 ms 256 KB
10_testcase02 WA 2 ms 256 KB
10_testcase03 WA 1 ms 256 KB
10_testcase04 WA 1 ms 256 KB
10_testcase05 WA 1 ms 256 KB
10_testcase06 WA 1 ms 256 KB
10_testcase07 WA 2 ms 256 KB
10_testcase08 WA 1 ms 256 KB
10_testcase09 WA 2 ms 256 KB
10_testcase10 WA 1 ms 256 KB
10_testcase11 WA 1 ms 256 KB
10_testcase12 WA 1 ms 256 KB
10_testcase13 WA 1 ms 256 KB
10_testcase14 WA 1 ms 256 KB
10_testcase15 WA 1 ms 256 KB
10_testcase16 WA 2 ms 256 KB
10_testcase17 WA 1 ms 256 KB
10_testcase18 WA 1 ms 256 KB
10_testcase19 WA 1 ms 256 KB
10_testcase20 WA 1 ms 256 KB
10_testcase21 WA 1 ms 256 KB
10_testcase22 WA 1 ms 256 KB
10_testcase23 WA 1 ms 256 KB
10_testcase24 WA 1 ms 256 KB
10_testcase25 WA 1 ms 256 KB
10_testcase26 WA 2 ms 256 KB
10_testcase27 WA 1 ms 256 KB
10_testcase28 WA 1 ms 256 KB
10_testcase29 WA 1 ms 256 KB
10_testcase30 WA 1 ms 256 KB
10_testcase31 WA 1 ms 256 KB
10_testcase32 WA 1 ms 256 KB
10_testcase33 WA 1 ms 256 KB
10_testcase34 WA 1 ms 256 KB
10_testcase35 WA 1 ms 256 KB
10_testcase36 WA 1 ms 256 KB
10_testcase37 WA 1 ms 256 KB
10_testcase38 WA 1 ms 256 KB
10_testcase39 WA 1 ms 256 KB
10_testcase40 WA 1 ms 256 KB
10_testcase41 WA 1 ms 256 KB
10_testcase42 WA 1 ms 256 KB
10_testcase43 WA 1 ms 256 KB
10_testcase44 WA 1 ms 256 KB
10_testcase45 WA 1 ms 256 KB
10_testcase46 WA 1 ms 256 KB
10_testcase47 WA 1 ms 256 KB
10_testcase48 WA 1 ms 256 KB
10_testcase49 WA 1 ms 256 KB
10_testcase50 WA 1 ms 256 KB
10_testcase51 WA 1 ms 256 KB
10_testcase52 WA 1 ms 256 KB
10_testcase53 WA 1 ms 256 KB
10_testcase54 WA 1 ms 256 KB
10_testcase55 WA 1 ms 256 KB
10_testcase56 WA 1 ms 256 KB
10_testcase57 WA 2 ms 256 KB
10_testcase58 WA 2 ms 256 KB
10_testcase59 WA 1 ms 256 KB
10_testcase60 WA 1 ms 256 KB
10_testcase61 WA 1 ms 256 KB
10_testcase62 WA 1 ms 256 KB
10_testcase63 WA 1 ms 256 KB
10_testcase64 WA 1 ms 256 KB
10_testcase65 WA 2 ms 256 KB
10_testcase66 WA 1 ms 256 KB
10_testcase67 WA 1 ms 256 KB
10_testcase68 WA 2 ms 256 KB
10_testcase69 WA 1 ms 256 KB
10_testcase70 WA 1 ms 256 KB
10_testcase71 WA 2 ms 256 KB
10_testcase72 WA 1 ms 256 KB
10_testcase73 WA 2 ms 256 KB
10_testcase74 WA 1 ms 256 KB
10_testcase75 WA 1 ms 256 KB
10_testcase76 WA 1 ms 256 KB
10_testcase77 WA 1 ms 256 KB
10_testcase78 WA 1 ms 256 KB
10_testcase79 WA 1 ms 256 KB
10_testcase80 WA 1 ms 256 KB
10_testcase81 WA 1 ms 256 KB
10_testcase82 WA 1 ms 256 KB
10_testcase83 WA 1 ms 256 KB
10_testcase84 WA 1 ms 256 KB
10_testcase85 WA 1 ms 256 KB
10_testcase86 WA 1 ms 256 KB