結果
| 問題 | No.544 Delete 7 |
| コンテスト | |
| ユーザー |
UK_kkbj
|
| 提出日時 | 2017-07-20 17:57:09 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 278 bytes |
| コンパイル時間 | 883 ms |
| コンパイル使用メモリ | 28,928 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-08 17:48:34 |
| 合計ジャッジ時間 | 2,877 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 48 |
ソースコード
#include <stdio.h>
int check_7(int n){
while(n > 0){
if(n % 10 == 7){
return 1;
}
n /= 10;
}
return 0;
}
int main(){
int n;
scanf("%d",&n);
int a = n,b = 0;
while(check_7(a)&&check_7(b)){
a++;
b--;
}
printf("%d %d",a,b);
return 0;
}
UK_kkbj