結果
問題 |
No.1076 寿司打
|
ユーザー |
|
提出日時 | 2020-08-14 01:06:51 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 273 bytes |
コンパイル時間 | 2,259 ms |
コンパイル使用メモリ | 193,316 KB |
最終ジャッジ日時 | 2025-01-12 22:13:05 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
ソースコード
#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),b=5-s.size(); while(a&&b)a*=10,--b; a=100'000-a; cout<<1e5/a-1<<"\n"s; }