結果

問題 No.7 プライムナンバーゲーム
ユーザー ko_ki_leo
提出日時 2015-10-11 22:06:47
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 216 bytes
コンパイル時間 1,170 ms
コンパイル使用メモリ 156,628 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-21 06:55:56
合計ジャッジ時間 1,785 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

int main(){

  int n;
  cin >> n;

  bool flg = true;
  for(int i=2;i*i<=n;i++)
    if(n%i == 0){ flg = false; break; }

  if(flg) puts("Win");
  else puts("Lose");

}
  
0