結果
問題 |
No.313 π
|
ユーザー |
|
提出日時 | 2021-06-22 19:40:44 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 8 ms / 5,000 ms |
コード長 | 528 bytes |
コンパイル時間 | 2,263 ms |
コンパイル使用メモリ | 195,404 KB |
最終ジャッジ日時 | 2025-01-22 11:36:20 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 32 |
ソースコード
#include<bits/stdc++.h> using namespace std; using ll = long long int; using ld = long double; #define pow(n,m) powl(n,m) #define sqrt(n) sqrtl(n) const ll MAX = 5000000000000000000; const ll MOD = 1000000007; random_device rd; mt19937 mt(rd()); int main(){ vector<ll> A = {20104,20063,19892,20011,19874,20199,19898,20163,19956,19841}; string S; cin >> S; for(ll i = 0;i < S.size();i++) A[S[i] - '0']--; for(ll i = 0;i < 10;i++) if(A[i] == -1) cout << i << " "; for(ll i = 0;i < 10;i++) if(A[i] == 1) cout << i << endl; }