結果
問題 | No.313 π |
ユーザー |
![]() |
提出日時 | 2015-12-11 23:29:06 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 13 ms / 5,000 ms |
コード長 | 284 bytes |
コンパイル時間 | 407 ms |
コンパイル使用メモリ | 56,000 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-15 08:27:32 |
合計ジャッジ時間 | 1,890 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 32 |
コンパイルメッセージ
main.cpp:5:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] 5 | main(){ | ^~~~
ソースコード
#include <iostream>using namespace std;#define REP(i,x) for(int i=0;i<(int)(x);i++)unsigned char c, x[11] = "dcdcbcbcda";main(){while(cin >> c)if(isdigit(c)) x[c - '0']--;REP(i, 10) if(x[i]%4 == 3) cout << i << ' ';REP(i, 10) if(x[i]%4 == 1) cout << i << endl;return 0;}