結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
suppy193
|
| 提出日時 | 2015-05-27 10:37:29 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 442 bytes |
| コンパイル時間 | 354 ms |
| コンパイル使用メモリ | 20,608 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-09 10:20:05 |
| 合計ジャッジ時間 | 1,615 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 RE * 5 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:8:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
8 | scanf("%d%d", &s, &e);
| ^~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(void)
{
int s, e;
int i, j;
char str[10];
scanf("%d%d", &s, &e);
for(i = s;i <= e;i++){
if(i % 3 == 0){
printf("%d\n", i);
}
else{
sprintf(str, "%d", i);
j = 0;
while(str[j] != '\0'){
if(str[j] == '3'){
printf("%d\n", i);
break;
}
j++;
}
}
}
return 0;
}
suppy193