結果
| 問題 |
No.544 Delete 7
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-07-14 23:03:57 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 1,000 ms |
| コード長 | 163 bytes |
| コンパイル時間 | 512 ms |
| コンパイル使用メモリ | 64,868 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-21 16:11:13 |
| 合計ジャッジ時間 | 2,225 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 48 |
コンパイルメッセージ
main.cpp:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
3 | main()
| ^~~~
ソースコード
#include<iostream>
using namespace std;
main()
{
long n,a=0;
cin>>n;
for(long i=1;i<=n;i*=10){
if(n/i%10==7)
{
a+=i;
}
}
cout<<a<<" "<<n-a<<endl;
}