結果
| 問題 | No.544 Delete 7 |
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2025-12-24 22:33:04 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 543 bytes |
| 記録 | |
| コンパイル時間 | 1,954 ms |
| コンパイル使用メモリ | 196,888 KB |
| 実行使用メモリ | 7,852 KB |
| 最終ジャッジ日時 | 2025-12-24 22:33:14 |
| 合計ジャッジ時間 | 9,583 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 48 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define int long long
int n;
string s;
signed main()
{
ifstream cin("no7.in");
ofstream cout("no7.out");
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin >> n;
s = to_string(n);
int adds = 0;
for (int i = 0; i < s.size(); ++i)
{
if (s[i] != '7')
{
cout << s[i];
}
else
{
cout << 6;
adds += pow(10, s.size() - i - 1);
}
}
cout << ' ';
cout << adds;
}
vjudge1