結果

問題 No.544 Delete 7
ユーザー shiboy_AAA
提出日時 2017-07-14 22:53:00
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 245 bytes
コンパイル時間 504 ms
コンパイル使用メモリ 59,204 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-21 16:10:54
合計ジャッジ時間 2,281 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 48
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cmath>
using namespace std;

int main(void){
  int n;
  cin >> n;
  int n1 = n;
  int a=0;
  for(int i=0;i<=9;i++){
    if(n%10==7) a+=pow(10,i);
    n = n/10;
  }

  cout << a << " " << n1-a << endl;
  return 0;
}
0