結果
問題 |
No.2450 99-like Number
|
ユーザー |
![]() |
提出日時 | 2023-09-02 19:34:29 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 198 bytes |
コンパイル時間 | 876 ms |
コンパイル使用メモリ | 19,840 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-12 01:58:33 |
合計ジャッジ時間 | 1,084 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 5 WA * 13 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:8:15: warning: too many arguments for format [-Wformat-extra-args] 8 | scanf("$s", s); | ^~~~ main.c:8:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("$s", s); | ^~~~~~~~~~~~~~
ソースコード
#include<stdio.h> int main(void){ int i; char s[100]; scanf("$s", s); for(i = 0;s[i] != '\0';i++){ if(s[i] != '9'){ printf("No\n"); return 0; } } printf("Yes\n"); return 0; }