結果
問題 |
No.509 塗りつぶしツール
|
ユーザー |
![]() |
提出日時 | 2017-06-22 14:34:59 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 318 bytes |
コンパイル時間 | 429 ms |
コンパイル使用メモリ | 28,800 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-02 12:13:17 |
合計ジャッジ時間 | 1,430 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 WA * 17 |
ソースコード
#include <stdio.h> int main() { int num,tempnum,ans; scanf("%d", &num); ans = 1; while (num != 0) { tempnum = num % 10; num /= 10; switch (tempnum) /*fall through*/ { case(8): ans++; case(0): case(4): case(6): case(9): ans++; default: ans += 2; } } printf("%d\n", ans); }