結果
問題 |
No.207 世界のなんとか
|
ユーザー |
|
提出日時 | 2022-09-16 23:32:00 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 310 bytes |
コンパイル時間 | 1,673 ms |
コンパイル使用メモリ | 28,672 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-21 23:09:14 |
合計ジャッジ時間 | 1,600 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 17 |
ソースコード
#include<stdio.h> #include<stdlib.h> int main(void) { long int a,b; scanf("%ld %ld",&a,&b); long int n=b-a+1; for(long int i=a;i<=b;i++) { if(i%3==0) printf("%ld\n",i); char str[10]; snprintf(str,10,"%d",i); for(int j=0;j<10;j++){ if(str[j]=='3') printf("%ld\n",i); } } return 0; }