제출 #967754

#제출 시각아이디문제언어결과실행 시간메모리
967754amine_arouaAliens (IOI16_aliens)C++17
4 / 100
1 ms432 KiB
#pragma once #include <bits/stdc++.h> using namespace std; #define fore(i , n) for(int i = 0;i<n;i++) #define forr(i , x , y) for(int i = x;i<=y;i++) #define ll long long long long take_photos(int n, int m, int k, std::vector<int> r, std::vector<int> c) { vector<vector<bool>> vis(m, vector<bool>(m , 0)); fore(i , n) { int x = r[i] , y = c[i]; if(x > y) swap(x , y); forr(j , x , y) { forr(l , x , y) { vis[j][l] = 1; } } } ll ans = 0; fore(i,m) fore(j , m) ans+=vis[i][j]; return ans; }

컴파일 시 표준 에러 (stderr) 메시지

aliens.cpp:1:9: warning: #pragma once in main file
    1 | #pragma once
      |         ^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...