結果
問題 | No.544 Delete 7 |
ユーザー |
|
提出日時 | 2017-09-30 17:46:24 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 439 bytes |
コンパイル時間 | 1,471 ms |
コンパイル使用メモリ | 166,924 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-21 16:33:31 |
合計ジャッジ時間 | 3,469 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 48 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define FOR(i,a,b) for(int i=(a);i<(b);i++) #define REP(i,n) FOR(i,0,n) #define ALL(a) (a).begin(),(a).end() int main(){ int in;cin>>in; int n=in; int now=1; int b=0; for(int i=1;in>0;i++){ if(in%10==7){ cerr<<"Detect:"<<now<<endl; b+=1*now; } now*=10; in/=10; } cout<<(n-b)<<" "<<b<<"\n"; return 0; }