結果
問題 | No.207 世界のなんとか |
ユーザー |
![]() |
提出日時 | 2025-03-06 16:34:37 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 306 bytes |
コンパイル時間 | 410 ms |
コンパイル使用メモリ | 25,088 KB |
実行使用メモリ | 8,608 KB |
最終ジャッジ日時 | 2025-03-06 16:34:40 |
合計ジャッジ時間 | 1,584 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
コンパイルメッセージ
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{ int temp; temp = i; while(temp > 0){ if(temp%10 == 3){ printf("%d\n", i); break; } temp /= 10; } } } }