結果
問題 |
No.1076 寿司打
|
ユーザー |
|
提出日時 | 2020-08-14 00:56:05 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 260 bytes |
コンパイル時間 | 4,757 ms |
コンパイル使用メモリ | 193,584 KB |
最終ジャッジ日時 | 2025-01-12 22:08:57 |
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 WA * 1 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ cin.tie(0),ios::sync_with_stdio(false); string s; cin>>s; if(s.size()==1){ cout<<"0\n"s; return 0; } s=s.substr(2); int a=stoi(s); while(a&&a<1e4)a*=10; a=100'000-a; cout<<1e5/a-1<<"\n"s; }