結果
問題 | No.207 世界のなんとか |
ユーザー |
![]() |
提出日時 | 2016-12-13 17:37:01 |
言語 | C90 (gcc 12.3.0) |
結果 |
RE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 276 bytes |
コンパイル時間 | 114 ms |
コンパイル使用メモリ | 21,248 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-30 01:10:04 |
合計ジャッジ時間 | 1,397 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 RE * 5 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:10:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 10 | scanf("%ld %ld",&A,&B); | ^~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>#include <string.h>#include <stdlib.h>int main(void) {long int A;long int B;long int i;char s[10]={0};scanf("%ld %ld",&A,&B);for(i=A;i<=B;i++){sprintf(s,"%ld",i);if(i%3 == 0 || strstr(s,"3")!=NULL)printf("%ld\n",i);}return 0;}