| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 362014 | Siddhant | Detecting Molecules (IOI16_molecules) | C++98 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef vector<int> vi;
typedef pair<int, int> pi;
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define pop_front(v) v.erase(v.begin())
#define REP(i, a, b) for (int i=a; i<=b; i++)
#define REPn(i, a, b) for (int i=a; i>=b; i--)
#define FOR(i, n) REP(i, 0, n-1)
#define FORn(j, n) REPn(j, n-1, 0)
#define all(v) v.begin(), v.end()
#define allR(v) v.rbegin(), v.rend()
void produceCases() {
int n=rand()%100+1;
int a1=rand()%1000+1, a2=rand()%1000+1;
int l = min(a1, a2), u=max(a2, a1);
cout<<n<<" "<<l<<" "<<u<<endl;
int kk = rand()%1000;
FOR(i, n) {
cout<<kk+rand()%2<<" ";
}
cout<<endl;
}
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
freopen("input.txt", "w", stdout);
srand(time(NULL));
int totalCases=100;
cout<<totalCases<<endl;
REP(i, 1, totalCases) {
produceCases();
}
}
