結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2017-06-19 16:09:52 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 313 bytes |
コンパイル時間 | 214 ms |
コンパイル使用メモリ | 20,736 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-02 07:43:59 |
合計ジャッジ時間 | 934 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 WA * 10 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d%d", &a, &b); | ^~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> #define DEBUG int main(void){ int a, b; scanf("%d%d", &a, &b); for(int i = a; i <= b; i++){ if(i % 3 == 0){ printf("%d\n", i); } else{ char s[11]; sprintf(s, "%d", i); for(int j = 0; j < 10; j++){ if(s[j] == '3'){ printf("%d\n", i); } } } } return 0; }