結果

問題 No.308 素数は通れません
ユーザー kurenai3110
提出日時 2016-10-28 15:57:24
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 262 bytes
コンパイル時間 705 ms
コンパイル使用メモリ 53,724 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-24 05:11:38
合計ジャッジ時間 3,831 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 91 WA * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main(int argc, const char * argv[]) {
    int n;cin>>n;
    
    if(n==4)cout<<3<<endl;
    else if(n==6)cout<<5<<endl;
    else{
        if(4-n/7>=n%7)cout<<7<<endl;
        else cout<<8<<endl;
    }
    return 0;
}
0