# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
899447 | HamzaT | Radio (COCI22_radio) | C++14 | 1553 ms | 1364 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
//struct Edge {int u, v, weight;bool operator<(Edge const& other) {return weight < other.weight;}};
#include <bits/stdc++.h>
#define endl "\n"
#define ll long long
#define sp ' '
#define pb push_back
#define ar for(int i=1;i<=n;i++)
using namespace std;
ll t=1;
const ll N=3e5+100;
ll n,m,q,k;
ll a[N],b[N],c[N];
void solve()
{
cin>>n>>m;
while(m--)
{
char c;
cin>>c;
if(c=='S'){ll x;cin>>x;a[x]=abs(a[x]-1);}
else
{
ll l,r;cin>>l>>r;
bool ok=false;
for(int i=2;i<=r;i++)
{
ll num=0;
for(int j=i;j<=r;j+=i){if(a[j]&&j>=l&&j<=r){num++;}}
if(num>=2){ok=true;}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |