結果
問題 |
No.860 買い物
|
ユーザー |
👑 ![]() |
提出日時 | 2018-10-26 06:56:34 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 364 bytes |
コンパイル時間 | 410 ms |
コンパイル使用メモリ | 28,544 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-19 05:59:13 |
合計ジャッジ時間 | 1,729 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 15 |
ソースコード
//入力チェック #include<stdio.h> #include<assert.h> #include<string.h> char s[1010]; int main(){ int n; assert(scanf("%d\n",&n)==1); assert(1<=n&&n<=100000); for(int i=0;i<n;i++){ assert(fgets(s,1000,stdin)); int a,b; assert(sscanf(s,"%d %d",&a,&b)==2); assert(1<=a&&a<=1000000000); assert(1<=b&&b<=1000000000); } assert(scanf("%s",s)==-1); }