답안 #1087398

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1087398 2024-09-12T15:30:39 Z sidlad Tracks in the Snow (BOI13_tracks) C++17
2.1875 / 100
216 ms 31856 KB
#include <bits/stdc++.h>
const long double EPS = 1e-7;
const long long int INF = LONG_LONG_MAX/2;
const long long int M = (long long int) 1e9 + 7;//998'244'353;
using namespace std;
//insert policy here

//insert mintcode here

#if defined (ONLINE_JUDGE) || !__has_include (</home/sidlad/Desktop/Coding Folder/c and cpp codes/Debug.h>)
    void _exe() {}
    template <typename T, typename... V>
    const T& _exe(const T &t,const V&... v) {return t;}
    template <typename T, typename... V>
    T& _exe(T &t,V&... v) {return t;}
    
    #define debug(x...) (_exe(x))
    
    class CNothing {};

    template <typename T>
    const CNothing& operator<<(const CNothing& proxy, const T&)
    {
        return proxy;
    }

    const CNothing& operator<<(const CNothing& proxy, std::ostream& (*)(std::ostream&))
    {
        return proxy;
    }
    CNothing cnothing;
    #define cerr cnothing
#else
    #include </home/sidlad/Desktop/Coding Folder/c and cpp codes/Debug.h>
#endif

#define int long long
#define double long double
#define all(x) (x).begin(),(x).end()
#define endl "\n" //comment out for interactive problems
#define cout(x) x?cout<<"Yes"<<endl:cout<<"No"<<endl

int32_t main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL); cout.tie(NULL);
    cout.precision(numeric_limits<double>::max_digits10);
    // freopen("input.txt","r",stdin);
    // freopen("output.txt","w",stdout);
    int n,m;
    cin>>n>>m;
    vector<vector<char>> v(n,vector<char>(m));
    for(auto& row:v)for(auto&ele:row)cin>>ele;
    set<char> st;
    for(auto&row:v)for(auto& ele:row)if(ele!='.')st.insert(ele);
    cout<<st.size()<<endl;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 5 ms 860 KB Output isn't correct
2 Incorrect 0 ms 348 KB Output isn't correct
3 Incorrect 0 ms 348 KB Output isn't correct
4 Incorrect 2 ms 600 KB Output isn't correct
5 Incorrect 1 ms 604 KB Output isn't correct
6 Incorrect 0 ms 344 KB Output isn't correct
7 Incorrect 1 ms 348 KB Output isn't correct
8 Incorrect 0 ms 348 KB Output isn't correct
9 Incorrect 1 ms 348 KB Output isn't correct
10 Incorrect 2 ms 344 KB Output isn't correct
11 Incorrect 1 ms 348 KB Output isn't correct
12 Incorrect 2 ms 604 KB Output isn't correct
13 Incorrect 1 ms 604 KB Output isn't correct
14 Incorrect 2 ms 628 KB Output isn't correct
15 Incorrect 4 ms 968 KB Output isn't correct
16 Incorrect 5 ms 828 KB Output isn't correct
17 Incorrect 4 ms 860 KB Output isn't correct
18 Incorrect 3 ms 724 KB Output isn't correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 604 KB Output isn't correct
2 Incorrect 18 ms 3564 KB Output isn't correct
3 Incorrect 188 ms 31828 KB Output isn't correct
4 Incorrect 39 ms 7624 KB Output isn't correct
5 Incorrect 87 ms 18008 KB Output isn't correct
6 Incorrect 214 ms 31824 KB Output isn't correct
7 Incorrect 1 ms 604 KB Output isn't correct
8 Incorrect 2 ms 604 KB Output isn't correct
9 Incorrect 2 ms 464 KB Output isn't correct
10 Incorrect 1 ms 344 KB Output isn't correct
11 Incorrect 1 ms 604 KB Output isn't correct
12 Incorrect 1 ms 348 KB Output isn't correct
13 Incorrect 18 ms 3424 KB Output isn't correct
14 Incorrect 12 ms 2260 KB Output isn't correct
15 Incorrect 13 ms 2396 KB Output isn't correct
16 Incorrect 13 ms 1628 KB Output isn't correct
17 Incorrect 76 ms 8272 KB Output isn't correct
18 Incorrect 50 ms 8272 KB Output isn't correct
19 Incorrect 40 ms 7772 KB Output isn't correct
20 Incorrect 38 ms 7188 KB Output isn't correct
21 Incorrect 143 ms 18548 KB Output isn't correct
22 Incorrect 112 ms 18064 KB Output isn't correct
23 Incorrect 90 ms 15548 KB Output isn't correct
24 Incorrect 98 ms 18256 KB Output isn't correct
25 Incorrect 192 ms 31828 KB Output isn't correct
26 Correct 141 ms 24332 KB Output is correct
27 Incorrect 187 ms 31824 KB Output isn't correct
28 Incorrect 183 ms 31828 KB Output isn't correct
29 Incorrect 172 ms 31852 KB Output isn't correct
30 Incorrect 216 ms 31064 KB Output isn't correct
31 Incorrect 142 ms 20436 KB Output isn't correct
32 Incorrect 181 ms 31856 KB Output isn't correct