結果

問題 No.313 π
ユーザー chuka231
提出日時 2015-12-08 01:15:54
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 476 bytes
コンパイル時間 635 ms
コンパイル使用メモリ 61,380 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-14 18:49:54
合計ジャッジ時間 1,536 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 8 WA * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <string>
#include <iostream>
#include <cmath>
#include <fstream>
using namespace std;
int a[10] = { 1954, 1997, 1986, 1986, 2043, 2082, 2017, 1953, 1962, 2020 };
int b[10];

int main()
{
	char c1,c2;
	cin >> c1;
	cin >> c2;

	for (int i = 0; i < 20000; i++) {
		char ch;
		cin >> ch;
		b[ch - '0']++;
	}

	for (int i = 0; i < 10; i++) {
		if (a[i] != b[i]) {
			cout << a[i] << " " << b[i] << endl;
			return 0;
		}
	}

	cout << c1 << " " << 3 << endl;

	return 0;
}
0