#282(div2) A. Digital Counter
題意:某個數字可能損壞部分,問有多少種變成給出的數字。
思路:直接算。
1 #include<bits/stdc++.h> 2 using namespace std; 3 int main() 4 { 5 int a[12]; 6 a[0]=2;a[1]=7;a[2]=2; 7 a[3]=3;a[4]=3;a[5]=4; 8 a[6]=2;a[7]=5;a[8]=1;a[9]=2; 9 int n; 10 while(scanf("%d",&n)!=EOF) 11 { 12 int x=n%10; 13 int y=n/10; 14 cout<<a[x]*a[y]<<endl; 15 } 16 return 0; 17 }
#282(div2) A. Digital Counter
相關推薦
#282(div2) A. Digital Counter
counter sin using esp its clu count urn ++ 題意:某個數字可能損壞部分,問有多少種變成給出的數字。 思路:直接算。 1 #include<bits/stdc++.h> 2 using namespace std;
#419(div2) A. Karen and Morning
return main name spa ring 思路 clas 判斷 bit 題意:給出某個時刻,問多少秒後時刻變成回文的了 思路:A題就直接暴力咯,一秒一秒加,判斷,註意:24點為0點 1 #include<bits/stdc++.h> 2 usin
Codeforces Round#523 (div2)A -Coins (水題)
原題連結: A. Coins time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output You have unlimited numb
更換oracle 集群網卡(Changing a Network Interface)
post data crs 52.0 network ifconf down oracle 更換 ?? 更換oracle 集群網卡(Changing a Network Interface) 假設換網卡前後 網卡名。ip,網關,子網掩碼都不變的話,集群層面不許要做額外
#418(div2)A
col 將他 %d ace std blog 數列 div2 its 題意:長度為n,m的2個數列a,b。a中有m個0,將m個數代替0,問是否只有一種放法讓a為遞增的,可以輸出No,否則Yes 思路:當m大於1的時候,肯定是Yes,然後我們將他放進去試一下就行了 1
關於NaN(Not a Number)的問題
date() oid 處理 rtu scale class eal input force 在遊戲運行時,代碼若寫得不安全很容易出現NAN的異常。一旦NAN出現整個遊戲不崩潰也壞死掉了,遊戲上了則是要被直接打回來的節奏,更是一個開發及測試人員每人都要扣3000塊的大BUG。
#269(div2) B. MUH and Important Things
int 數字 mes n) amp log pri 三種 bit 題意:有n個數字,代表第i個的難度為a[i],問是否有三種不同的序列使得難度從低到高 思路:那麽難度相同的對肯定要>=2,然後瞎搞,嗯,瞎搞就行了 1 #include<bits/stdc++
#419(div2) C. Karen and Game
clu 更多 names code bits nod 矩陣 hang 是否 題意:給出一個n*m的矩陣,然後我們可以每一行-1,每一列-1,問是否可以全部變成0 思路:最開始的時候馬上就想到了無論怎樣,他每一行該減去的時候無論先後都要減去,那麽我每一行取一個最小值減去,然後
SPOJ4491. Primes in GCD Table(gcd(a,b)=d素數,(1<=a<=n,1<=b<=m))加強版
function ted solid result writing set silver %d ron SPOJ4491. Primes in GCD Table Problem code: PGCD
[Unity3D]關於NaN(Not a Number)的問題
nsf realtime ans 理解 sig mesi eal () 想要 在遊戲運行時,代碼若寫得不安全很容易出現NAN的異常。一旦NAN出現整個遊戲不崩潰也壞死掉了,遊戲上了則是要被直接打回來的節奏,更是一個開發及測試人員每人都要扣3000塊的大BUG。 一般表現
[Recompose] Merge RxJS Button Event Streams to Build a React Counter Component
wal with count blog value ble ack sso map Combining input streams then using scan to track the results is a common scenario when coding w
MATLAB中mesh函數的使用:基於像素強度畫3D密度圖(create a 3D density plot based on the pixel intensity:mesh function)
ase tps splay 示例 width bubuko pre pos 簡單 所用的函數非常簡單,只需要用到mesh函數,示例代碼如下: Ima=imread(‘F:\pathto\test.jpg‘); surf_ima = surf(rgb2gray(Ima
LeetCode 74. 搜索二維矩陣(Search a 2D Matrix)
tar 編寫 搜索 family pty 個數 找到 leet 二分 題目描述 編寫一個高效的算法來判斷 m x n 矩陣中,是否存在一個目標值。該矩陣具有如下特性: 每行中的整數從左到右按升序排列。 每行的第一個整數大於前一行的最後一個整數。 示例 1: 輸入:
Codeforces Round #503(div2) 做題記錄
一次 ORC force eof fine break bits 滿足 ems 前幾天有點咕,馬上題解會跟上~ A. 題意: 有n個樓,每個樓有h層,相鄰兩個樓在(a,b)之間有通道 k次詢問,每次問(tA,fA)到(tB,fB)(t為樓的編號,f為樓層)的最短路 題解:
Codeforces Round #517(Div2) A.Golden Plate
A. Golden Plate time limit per test1 second memory limit per test256 megabytes input:standard input output:standard output You have a plate a
輸入一行電報文字,將字母變成其下一字母(如’a’變成’b’……’z’變成’a’其它字元不變)
import java.util.Scanner; public class Main { public static void main(String[] age) { Scanner sc = new Scanner(System.in); String n = sc.nextLine(); p
Python基礎——NaN(Not a Number)
分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow 也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!  
線段樹區間更新區間查詢(Just a Hook)
Just a Hook 線段樹區間更新區間查詢 In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up
手把手教你搭建React Native 開發環境 - ios篇 (React <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="eda38c99849b88adddc3d8d8c3d9">[email
由於之前我是h5的,沒接觸過ios和安卓, 也不瞭解xcode配置,所以 建議學reace-native之前還是先去了解一下ios和安卓開發環境搭建等問題。 環境下載及配置 nodejs:https://nodejs.org/en/download/ 設定淘寶映象 $ npm con
LeetCode 240. 搜尋二維矩陣 II(Search a 2D Matrix II)
題目描述 編寫一個高效的演算法來搜尋 m x n 矩陣 matrix 中的一個目標值 target。該矩陣具有以下特性: 每行的元素從左到右升序排列。 每列的元素從上到下升序排列。 示例: 現有矩陣 matrix 如下: [