結果
| 問題 |
No.2450 99-like Number
|
| コンテスト | |
| ユーザー |
suppy193
|
| 提出日時 | 2023-09-02 19:40:11 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 202 bytes |
| コンパイル時間 | 84 ms |
| コンパイル使用メモリ | 20,352 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-12 02:03:23 |
| 合計ジャッジ時間 | 791 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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);
i = 0;
while(s[i] == '9'){
i++;
}
if(s[i] == '\0'){
printf("Yes\n");
}
else{
printf("No\n");
}
return 0;
}
suppy193