結果
| 問題 | No.8045 怪文書 |
| コンテスト | |
| ユーザー |
Dente
|
| 提出日時 | 2019-04-01 22:43:08 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 384 bytes |
| 記録 | |
| コンパイル時間 | 871 ms |
| コンパイル使用メモリ | 80,368 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-27 03:38:21 |
| 合計ジャッジ時間 | 1,458 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 16 WA * 4 |
ソースコード
#include <iostream>
#include <algorithm>
#include <string>
#include <cmath>
#include <stack>
#include <vector>
#include <map>
#define REP(i,a) for(int i = 0; i < (a); i++)
using namespace std;
int main(){
int n,m;
cin >> n >> m;
for(int i = 2; i < m; i++)
{
if(m % i == 0){
cout << 0 << endl;
return 0;
}
}
if(n < m)cout << 1 << endl;
else cout << 0 << endl;
}
Dente