Skip to content

Instantly share code, notes, and snippets.

View pinglunliao's full-sized avatar

pinglunliao pinglunliao

View GitHub Profile
import java.util.Scanner;
import java.math.BigInteger;
public class JAVA {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);
String op;
BigInteger a, b, c = null;
while (cin.hasNext()) {
a = cin.nextBigInteger();
#include <iostream>
using namespace std;
void msg(bool b);
bool isPalindrome( const string &s );
int main()
{
string str;
#include <iostream>
#include <sstream>
using namespace std;
int main()
{
int a, b;
while(cin >> a >> b)
#include <iostream>
using namespace std;
int main()
{
int n;
while(cin >> n)
{
string msg;
#include <iostream>
#include <sstream>
using namespace std;
int main()
{
string s;
while(cin >> s)
{
#include <iostream>
using namespace std;
int main()
{
int armstrongNum[] = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
153, 370, 371, 407,
1634, 8208, 9474,
#include <iostream>
using namespace std;
int main()
{
int n;
while( cin >> n )
{
#include <iostream>
#include <cmath>
using namespace std;
int numD( short n )
{
if( n <= 3 )
return pow(2.0, n);
else
#include <iostream>
using namespace std;
int main() {
int n;
int s;
while(cin >> n)
{
if(n <= 10)
{
#include <iostream>
using namespace std;
void prtResult(int n)
{
switch(n) {
case 10:
cout << "BNZ" << endl;
break;