結果
問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
ユーザー |
![]() |
提出日時 | 2016-12-18 20:18:45 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 311 bytes |
コンパイル時間 | 365 ms |
コンパイル使用メモリ | 20,224 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-14 08:35:05 |
合計ジャッジ時間 | 1,094 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 2 |
other | AC * 7 WA * 6 |
コンパイルメッセージ
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("%d%d",&ab,&ba); | ^~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h> #include<string.h> int main(void){ char a[10000]; char b[10000]; int ab; int ba; scanf("%d%d",&ab,&ba); //if((ab>=0&&9>=ab)&&(ba>=0&&9>=ba)){ if(ab<=12345&&ba<=12345){ printf("OK\n"); }else{ printf("NG\n"); } /*}else{ printf("NGa"); } */ return 0; }