結果
| 問題 |
No.544 Delete 7
|
| コンテスト | |
| ユーザー |
lunnear
|
| 提出日時 | 2018-12-12 16:08:41 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 355 bytes |
| コンパイル時間 | 490 ms |
| コンパイル使用メモリ | 60,384 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-25 03:35:15 |
| 合計ジャッジ時間 | 2,416 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 37 WA * 11 |
ソースコード
#include <iostream>
#include <math.h>
int main()
{
int n;
std::cin >> n;
int a = n, b = 0;
int w = n;
for(int i = 0; w; i++)
{
if((w % 10) == 7)
{
a -= (i + 1) * pow(10, i);
}
w /= 10;
}
b = n - a;
std::cout << a << " " << b << std::endl;
return 0;
}
lunnear