結果
問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
ユーザー |
![]() |
提出日時 | 2016-12-18 20:21:07 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 332 bytes |
コンパイル時間 | 218 ms |
コンパイル使用メモリ | 20,352 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-14 08:35:06 |
合計ジャッジ時間 | 735 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 3 |
other | AC * 5 WA * 8 |
コンパイルメッセージ
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 if(ab>='A'&&ab<='B'){ printf("NG\n"); } /*}else{ printf("NGa"); } */ return 0; }