結果
| 問題 | No.544 Delete 7 |
| コンテスト | |
| ユーザー |
くれちー
|
| 提出日時 | 2016-12-23 01:23:26 |
| 言語 | C90 (gcc 15.2.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 278 bytes |
| 記録 | |
| コンパイル時間 | 167 ms |
| コンパイル使用メモリ | 39,212 KB |
| 最終ジャッジ日時 | 2026-02-23 23:57:54 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 48 |
ソースコード
#include <stdio.h>
#include <assert.h>
int contain7(int n) {
while (n != 0) {
if (n % 10 == 7 || n % 10 == -7) return 1;
n = (n - n % 10) / 10;
}
return 0;
}
int main() {
int n;
scanf("%d", &n);
assert(0 <= n);
assert(n <= 1e9);
assert(contain7(n));
return 0;
}
くれちー