結果
問題 | No.313 π |
ユーザー |
|
提出日時 | 2016-11-08 21:57:46 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 10 ms / 5,000 ms |
コード長 | 379 bytes |
コンパイル時間 | 594 ms |
コンパイル使用メモリ | 21,120 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-25 05:19:17 |
合計ジャッジ時間 | 1,422 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 32 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%c",&c); | ^~~~~~~~~~~~~~ main.c:10:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 10 | scanf("%c",&c); | ^~~~~~~~~~~~~~ main.c:12:25: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 12 | scanf("%c",&c); | ^~~~~~~~~~~~~~
ソースコード
#include<stdio.h> int main(){ int a[10]={20104,20063,19892,20010,19874,20199,19898,20163,19956,19841},i,j; char c; scanf("%c",&c); if(c!='3'){ printf("%c 3",c); return 0; } scanf("%c",&c); for(i=0;i<200000;i++){ scanf("%c",&c); a[c-48]--; } for(i=0;i<10;i++){ if(a[i]==-1)printf("%d ",i); } for(i=0;i<10;i++){ if(a[i]==1)printf("%d",i); } return 0; }