結果
問題 |
No.2624 Prediction by Average
|
ユーザー |
![]() |
提出日時 | 2024-02-10 02:14:52 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 566 bytes |
コンパイル時間 | 1,966 ms |
コンパイル使用メモリ | 199,900 KB |
最終ジャッジ日時 | 2025-02-19 04:26:54 |
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 1 WA * 4 |
ソースコード
#define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; #include<bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); map<int,int> m; for(int a=1000;a<=1000000;a*=10){ for(int i=1;i<=1000000;i++){ if(!m.count((a/i)%1000)){ m[(a/i)%1000]=i; } } } int t; cin>>t; while(t--){ ll n; int x; char y; int z; cin>>n>>x>>y>>z; if(!m.count(z)) cout<<0<<endl; else cout<<n/m[z]<<endl; } return 0; }