結果
問題 |
No.207 世界のなんとか
|
ユーザー |
![]() |
提出日時 | 2025-03-03 11:23:49 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 519 bytes |
コンパイル時間 | 376 ms |
コンパイル使用メモリ | 25,088 KB |
実行使用メモリ | 8,608 KB |
最終ジャッジ日時 | 2025-03-03 11:24:22 |
合計ジャッジ時間 | 1,103 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 19 |
ソースコード
#include <stdio.h> #include <string.h> #include <stdint.h> #define MAX_LEN (256) void main(void){ int a = 0 , b = 0; int inputA = scanf("%d",&a); if(inputA == 2){ printf("Aの入力エラー\n"); } int inputB = scanf("%d\n",&b); if(inputB == 2){ printf("Bの入力エラー\n"); } for(int i = a ; i <= b;i++){ char str[MAX_LEN]; snprintf(str, MAX_LEN, "%d", i); if( i/3 == 0 ){ printf("割り算結果:%d\n",i); } if( strstr(str,"3") != NULL ){ printf("文字列結果:%d\n",i); } } }