結果
| 問題 |
No.8033 Test of Russian
|
| コンテスト | |
| ユーザー |
ty70
|
| 提出日時 | 2018-04-01 22:56:47 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 467 bytes |
| コンパイル時間 | 1,316 ms |
| コンパイル使用メモリ | 159,580 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-26 06:03:14 |
| 合計ジャッジ時間 | 1,730 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 6 WA * 1 |
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(n);++i)
#define ALL(A) A.begin(), A.end()
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
int main()
{
srand(time(NULL));
ios_base::sync_with_stdio(0);
cin.tie(0);
int N, M, X; cin >> N >> M >> X;
vector<bool> ok(X, false);
rep (i, X){
int R = rand() % N;
if (R >= N - M) ok[i] = true;
} // end rep
cout << (count(ALL(ok), true) >= 3 ? "YES" : "NO") << endl;
return 0;
}
ty70