結果

問題 No.313 π
ユーザー kotamanegi
提出日時 2017-01-05 17:35:09
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 925 bytes
コンパイル時間 575 ms
コンパイル使用メモリ 86,088 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-12-16 10:04:06
合計ジャッジ時間 2,242 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 32
権限があれば一括ダウンロードができます

ソースコード

diff #

#define  _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <algorithm>
#include <utility>
#include <functional>
#include <cstring>
#include <queue>
#include <stack>
#include <math.h>
#include <iterator>
#include <vector>
#include <string>
#include <set>
#include <math.h>
#include <iostream> 
#include<map>
#include <iomanip>
#include <stdlib.h>
#include <list>
#include <typeinfo>
#include <list>
#include <set>
using namespace std;
#define MAX_MOD 1000000007
#define REP(i,n) for(long long i = 0;i < n;++i)
#define LONG_INF 100000000000000
int main() {
	iostream::sync_with_stdio(false);
	string hoge;
	cin >> hoge;
	int nya[10] = { 372,436,415,376,409,432,416,385,414,438 };
	nya[hoge[0] - '0']--;
	for (int i = 2;i < hoge.length();++i) {
		nya[hoge[i] - '0']--;
	}
	for (int i = 0;i < 10;++i) {
		if (nya[i] == -1) cout << i << " ";
	}
	for (int i = 0;i < 10;++i) {
		if (nya[i] == 1) cout << i << endl;
	}
	return 0;
}
0